MDEV-5341 ConnectSE: discovery for ODBC tables does not work if tables
with the same names present in multiple schemas The "TABNAME" option now supports qualified table names, to connect to tables residing in a particular schema and catalog. Qualified table names have the following format: [[CatalogName.]SchemaName.]TableName Qualified table names can be used: 1. In "normal" tables: CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEng;UID=mtr;PWD=mtr' TABNAME='schema1.t1'; 2. In catalog tables (CATFUNC=Tables and CATFUNC=Columns) CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='DSN=postgresql;UID=user;PWD=password' TABNAME='schema1.t1'; Note, the % and _ wildcards are supported in the schema name and the table name parts: CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='DSN=postgresql;UID=user;PWD=password' TABNAME='%.t1'; CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC CONNECTION='DSN=postgresql;UID=user;PWD=password' TABNAME='schema1.%';
Showing
Please register or sign in to comment