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.
This commit is contained in:
rosenfield
2007-07-27 15:09:18 +00:00
parent 2866e00f59
commit cc3fe79ecb

View File

@ -820,10 +820,10 @@ begin
is always the case. Except for those Zeos-internal queries is always the case. Except for those Zeos-internal queries
which partly use "information_schema" as catalog. which partly use "information_schema" as catalog.
} }
if Catalog <> '' then if LCatalog <> '' then
begin begin
sql := Format('SHOW TABLES FROM %s LIKE ''%s''', sql := Format('SHOW TABLES FROM %s LIKE ''%s''',
[GetIdentifierConvertor.Quote(Catalog), EncodeCString(LTableNamePattern)]); [GetIdentifierConvertor.Quote(LCatalog), EncodeCString(LTableNamePattern)]);
end end
else else
begin begin