mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 03:30:50 +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;
|
||||
ShowStatus('Fetching tables from "' + db + '" ...');
|
||||
try
|
||||
if not Assigned(InformationSchemaTables) then
|
||||
if not Assigned(InformationSchemaTables) then try
|
||||
InformationSchemaTables := Connection.GetCol('SHOW TABLES FROM '+mask(DBNAME_INFORMATION_SCHEMA));
|
||||
except
|
||||
InformationSchemaTables := TWideStringlist.Create;
|
||||
end;
|
||||
if InformationSchemaTables.IndexOf('TABLES') > -1 then begin
|
||||
Unions := TWideStringlist.Create;
|
||||
|
||||
|
Reference in New Issue
Block a user