mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Support inline valued functions on MSSQL. See http://www.heidisql.com/forum.php?t=20186
This commit is contained in:
@@ -4465,7 +4465,7 @@ begin
|
||||
try
|
||||
Results := GetResults('SELECT *, '+SchemaSelect+' AS '+EscapeString('schema')+
|
||||
' FROM '+QuoteIdent(db)+GetSQLSpecifity(spDbObjectsTable)+
|
||||
' WHERE '+QuoteIdent('type')+' IN ('+EscapeString('P')+', '+EscapeString('U')+', '+EscapeString('V')+', '+EscapeString('TR')+', '+EscapeString('FN')+', '+EscapeString('TF')+')');
|
||||
' WHERE '+QuoteIdent('type')+' IN ('+EscapeString('P')+', '+EscapeString('U')+', '+EscapeString('V')+', '+EscapeString('TR')+', '+EscapeString('FN')+', '+EscapeString('TF')+', '+EscapeString('IF')+')');
|
||||
except
|
||||
on E:EDatabaseError do;
|
||||
end;
|
||||
@@ -4487,7 +4487,7 @@ begin
|
||||
obj.NodeType := lntView
|
||||
else if tp = 'TR' then
|
||||
obj.NodeType := lntTrigger
|
||||
else if (tp = 'FN') or (tp = 'TF') then
|
||||
else if (tp = 'FN') or (tp = 'TF') or (tp = 'IF') then
|
||||
obj.NodeType := lntFunction;
|
||||
Results.Next;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user