mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user