mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user