mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix bug #876 : Incorrect database name ''
This commit is contained in:
@ -165,7 +165,7 @@ begin
|
|||||||
// If a table is selected, use that for preselection. If only a db was selected, use all tables inside it.
|
// If a table is selected, use that for preselection. If only a db was selected, use all tables inside it.
|
||||||
if Mainform.ChildWin.SelectedTable <> '' then
|
if Mainform.ChildWin.SelectedTable <> '' then
|
||||||
SelectedTables.Add(Mainform.ChildWin.SelectedTable)
|
SelectedTables.Add(Mainform.ChildWin.SelectedTable)
|
||||||
else begin
|
else if Mainform.ChildWin.ActiveDatabase <> '' then begin
|
||||||
ds := Mainform.ChildWin.FetchDbTableList(Mainform.ChildWin.ActiveDatabase);
|
ds := Mainform.ChildWin.FetchDbTableList(Mainform.ChildWin.ActiveDatabase);
|
||||||
while not ds.Eof do begin
|
while not ds.Eof do begin
|
||||||
SelectedTables.Add(ds.Fields[0].AsWideString);
|
SelectedTables.Add(ds.Fields[0].AsWideString);
|
||||||
|
Reference in New Issue
Block a user