From cc3fe79ecb6660bb96eef2a3b0b8730bb2487f10 Mon Sep 17 00:00:00 2001 From: rosenfield Date: Fri, 27 Jul 2007 15:09:18 +0000 Subject: [PATCH] Bugfix: GetCatalogAndNamePattern() is called to ensure that the schema name is carried to the LCatalog variable in case the database name is stored in the schema variable, but later the Catalog (no L) variable is used instead. Fixes issue #1732734. --- components/zeosdbo/src/dbc/ZDbcMySqlMetadata.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/zeosdbo/src/dbc/ZDbcMySqlMetadata.pas b/components/zeosdbo/src/dbc/ZDbcMySqlMetadata.pas index 8aa0c0c6..07ce6b30 100644 --- a/components/zeosdbo/src/dbc/ZDbcMySqlMetadata.pas +++ b/components/zeosdbo/src/dbc/ZDbcMySqlMetadata.pas @@ -820,10 +820,10 @@ begin is always the case. Except for those Zeos-internal queries which partly use "information_schema" as catalog. } - if Catalog <> '' then + if LCatalog <> '' then begin sql := Format('SHOW TABLES FROM %s LIKE ''%s''', - [GetIdentifierConvertor.Quote(Catalog), EncodeCString(LTableNamePattern)]); + [GetIdentifierConvertor.Quote(LCatalog), EncodeCString(LTableNamePattern)]); end else begin