mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 11:42:12 +08:00
Silence exception on old servers for users which don't have access to information_schema, where MySQL should say "Unknown database". Fixes issue #1421.
This commit is contained in:
@ -3591,8 +3591,11 @@ begin
|
|||||||
Screen.Cursor := crHourGlass;
|
Screen.Cursor := crHourGlass;
|
||||||
ShowStatus('Fetching tables from "' + db + '" ...');
|
ShowStatus('Fetching tables from "' + db + '" ...');
|
||||||
try
|
try
|
||||||
if not Assigned(InformationSchemaTables) then
|
if not Assigned(InformationSchemaTables) then try
|
||||||
InformationSchemaTables := Connection.GetCol('SHOW TABLES FROM '+mask(DBNAME_INFORMATION_SCHEMA));
|
InformationSchemaTables := Connection.GetCol('SHOW TABLES FROM '+mask(DBNAME_INFORMATION_SCHEMA));
|
||||||
|
except
|
||||||
|
InformationSchemaTables := TWideStringlist.Create;
|
||||||
|
end;
|
||||||
if InformationSchemaTables.IndexOf('TABLES') > -1 then begin
|
if InformationSchemaTables.IndexOf('TABLES') > -1 then begin
|
||||||
Unions := TWideStringlist.Create;
|
Unions := TWideStringlist.Create;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user