How to enumerate tables based on a selected database
Posted: 23.05.2010, 11:57
Hi,
I'm starting a new project that provides a way for the user to customize which databases or table to work on...IIRC i should be able to enumerate the databases via the GetCatalogNames method of TZConnection and GetTablesNames method for the tables. However it seems that only GetCatalogNames worked.
ZConn.GetTableNames('',lstTables) gives me an exception.
changing the pattern parameter to 'a*' also gives the same exception.
Is this a bug? any workarounds?
I'm starting a new project that provides a way for the user to customize which databases or table to work on...IIRC i should be able to enumerate the databases via the GetCatalogNames method of TZConnection and GetTablesNames method for the tables. However it seems that only GetCatalogNames worked.
ZConn.GetTableNames('',lstTables) gives me an exception.
Code: Select all
SQL Error: You have an error in your SQL syntax;
Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE'%" at line1'.
changing the pattern parameter to 'a*' also gives the same exception.
Is this a bug? any workarounds?