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:
Ansgar Becker
2008-06-19 16:53:14 +00:00
parent 65987ac2ad
commit 4cd5743980

View File

@ -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