mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Revert r1457 for the benefit of updatable views. Rely on the server responding with an error if the view is not updatable.
This commit is contained in:
@ -141,13 +141,10 @@ begin
|
||||
seltable := Mainform.ChildWin.SelectedTable;
|
||||
ds := Mainform.ChildWin.FetchDbTableList(comboDatabase.Text);
|
||||
while not ds.Eof do begin
|
||||
// Only display tables, skip views etc.
|
||||
if GetDBObjectType(ds.Fields) = NODETYPE_TABLE then begin
|
||||
comboTable.Items.Add(ds.Fields[0].AsString);
|
||||
count := comboTable.Items.Count-1;
|
||||
if (comboDatabase.Text = seldb) and (comboTable.Items[count] = seltable) then
|
||||
comboTable.ItemIndex := count;
|
||||
end;
|
||||
ds.Next;
|
||||
end;
|
||||
if comboTable.ItemIndex = -1 then
|
||||
|
Reference in New Issue
Block a user