mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +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:
@ -206,7 +206,7 @@ begin
|
||||
ds.RecNo := Node.Index+1;
|
||||
cols := Mainform.GetCol('SHOW COLUMNS FROM '
|
||||
+ Mainform.mask(Mainform.Databases[Node.Parent.Index])+'.'
|
||||
+ Mainform.Mask(ds.Fields[0].AsWideString));
|
||||
+ Mainform.Mask(ds.FieldByName(DBO_NAME).AsWideString));
|
||||
FColumns[Node.Parent.Index][Node.Index] := cols;
|
||||
ChildCount := cols.Count;
|
||||
end;
|
||||
@ -226,7 +226,7 @@ begin
|
||||
1: begin
|
||||
ds := Mainform.FetchDbTableList(Mainform.Databases[Node.Parent.Index]);
|
||||
ds.RecNo := Node.Index+1;
|
||||
CellText := ds.Fields[0].AsWideString;
|
||||
CellText := ds.FieldByName(DBO_NAME).AsWideString;
|
||||
end;
|
||||
2: CellText := FColumns[Node.Parent.Parent.Index][Node.Parent.Index][Node.Index];
|
||||
end;
|
||||
|
Reference in New Issue
Block a user