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

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