Integrate stored procedures and functions into the GUI flow, so they are visible like tables and editable from everywhere.

- FetchDbTableList now makes use of various tables in INFORMATION_SCHEMA if available - the only way of listing stored routines.
- If a routine is selected, Table + Data tab hide their grids and display a corresponding message instead. Seemed the only way to keep the normal flow of clicks, not changing too much click logic.
This commit is contained in:
Ansgar Becker
2009-03-02 21:40:44 +00:00
parent 36c8937abb
commit dbb84e6df9
9 changed files with 419 additions and 231 deletions

View File

@@ -149,7 +149,8 @@ begin
seltable := Mainform.SelectedTable;
ds := Mainform.FetchDbTableList(comboDatabase.Text);
while not ds.Eof do begin
comboTable.Items.Add(ds.Fields[0].AsWideString);
if GetDBObjectType(ds.Fields) in [NODETYPE_TABLE, NODETYPE_VIEW] then
comboTable.Items.Add(ds.FieldByName(DBO_NAME).AsWideString);
count := comboTable.Items.Count-1;
if (comboDatabase.Text = seldb) and (comboTable.Items[count] = seltable) then
comboTable.ItemIndex := count;