Class TFunctionCall
- Namespace
- gudusoft.gsqlparser.nodes
- Assembly
- gudusoft.gsqlparser.dll
Database built-in function or user defined function called in a SQL query. this class includes function name and arguments.
function([expr,expr, ...])
- type: FunctionType
- function name: FunctionName
- args: Args
for Window (or analytic) functions, method AnalyticFunction returns additional information about window information.
Below are functions with special arguments.
trim
- type: trim_t
- arg: TrimArgument
cast(expr as typename), cast(expr as typename [,datatypeAttribute]), cast(expr as datatypeAttribute)
convert(typename,[null|not null] expr1 [,expr2]),
extract([time_token from expr]),
- type: extract_t
- expr: Expr1
- time_token: Extract_time_token
sql server contains function,contains(in_expr, expr [,langTerm]),
- type: contains_t
- expr: Expr1
- in_expr: InExpr
sql server freetext,freetext(contain in expr, expr [,langTerm]),
- type: freetext_t
- expr: Expr1
- in_expr: InExpr
Oracle Extract(XML): extract(XMLType_instance, XPath_string[,namespace_string]),
- type: extractxml_t
- XMLType_instance: XMLType_Instance
- XPath_string: XPath_String
- namespace_string: Namespace_String
Rank(value,...),
- type: rank_t
- value list OrderByList
XMLPassingClause of XMLExists function
- type: xmlexists_t
- value list PassingClause
public class TFunctionCall : TParseTreeNode, Visitable
- Inheritance
-
TFunctionCall
- Implements
- Inherited Members
Fields
Trim_Expr_Renamed
public TExpression Trim_Expr_Renamed
Field Value
Trim_From_Expr_Renamed
public TExpression Trim_From_Expr_Renamed
Field Value
fntAddDate
public const int fntAddDate = 32
Field Value
fntCSUM
public const int fntCSUM = 16
Field Value
fntCaseN
public const int fntCaseN = 10
Field Value
fntCast
public const int fntCast = 2
Field Value
fntContains
public const int fntContains = 6
Field Value
fntConvert
public const int fntConvert = 3
Field Value
fntDateAdd
public const int fntDateAdd = 33
Field Value
fntDateSub
public const int fntDateSub = 35
Field Value
fntExtract
public const int fntExtract = 4
Field Value
fntExtractXML
public const int fntExtractXML = 50
Field Value
fntFreetext
public const int fntFreetext = 7
Field Value
fntGroupConcat
public const int fntGroupConcat = 38
Field Value
fntMatchAgainst
public const int fntMatchAgainst = 39
Field Value
fntOGC
public const int fntOGC = 60
Field Value
fntPosition
public const int fntPosition = 12
Field Value
fntRangeN
public const int fntRangeN = 11
Field Value
fntRank
public const int fntRank = 17
Field Value
fntSubDate
public const int fntSubDate = 34
Field Value
fntSubString
public const int fntSubString = 31
Field Value
fntTimestampAdd
public const int fntTimestampAdd = 36
Field Value
fntTimestampDiff
public const int fntTimestampDiff = 37
Field Value
fntTranslate
public const int fntTranslate = 14
Field Value
fntTranslateCHK
public const int fntTranslateCHK = 15
Field Value
fntTreat
public const int fntTreat = 5
Field Value
fntTrim
public const int fntTrim = 1
Field Value
fntUdf
public const int fntUdf = 0
Field Value
fntXmlQuery
public const int fntXmlQuery = 18
Field Value
Properties
AgainstExpr
against expr in match function of MySQL @return
public virtual TExpression AgainstExpr { get; set; }
Property Value
AggregateType
public virtual EAggregateType AggregateType { get; set; }
Property Value
AnalyticFunction
public virtual TAnalyticFunction AnalyticFunction { get; set; }
Property Value
Args
public virtual TExpressionList Args { get; set; }
Property Value
AsDatatype
public virtual TTypeName AsDatatype { get; set; }
Property Value
BetweenExpr
public virtual TExpression BetweenExpr { get; set; }
Property Value
BuiltIn
public virtual bool BuiltIn { set; }
Property Value
CallTarget
public virtual TExpressionCallTarget CallTarget { get; set; }
Property Value
CastOperand
public TExpression CastOperand { get; set; }
Property Value
CheckedBuiltIn
public virtual bool CheckedBuiltIn { set; }
Property Value
DatatypeAttribute
public virtual TDatatypeAttribute DatatypeAttribute { get; set; }
Property Value
Dummy
public virtual TDummy Dummy { get; set; }
Property Value
Expr1
public virtual TExpression Expr1 { get; set; }
Property Value
Expr2
public virtual TExpression Expr2 { get; set; }
Property Value
Expr3
public virtual TExpression Expr3 { get; set; }
Property Value
ExprList
public virtual TExpressionList ExprList { get; set; }
Property Value
ExtractXMLArg
public virtual TExpressionList ExtractXMLArg { set; }
Property Value
Extract_time_token
public virtual TSourceToken Extract_time_token { get; set; }
Property Value
FuncType
public virtual int FuncType { get; set; }
Property Value
FunctionName
public virtual TObjectName FunctionName { get; set; }
Property Value
FunctionType
public virtual EFunctionType FunctionType { get; set; }
Property Value
GroupConcatParam
public virtual TGroupConcatParam GroupConcatParam { get; set; }
Property Value
InExpr
public virtual TInExpr InExpr { get; set; }
Property Value
MatchColumns
column list in match function of MySQL @return
public virtual TObjectNameList MatchColumns { get; set; }
Property Value
Namespace_String
public virtual TExpression Namespace_String { get; set; }
Property Value
OrderByList
public virtual TOrderByItemList OrderByList { get; set; }
Property Value
Parameter
public TExpression Parameter { get; set; }
Property Value
PassingClause
public virtual TXMLPassingClause PassingClause { get; set; }
Property Value
RangeSize
public virtual TExpression RangeSize { get; set; }
Property Value
SeparatorExpr
the second argument of the listagg function.
public TExpression SeparatorExpr { get; set; }
Property Value
SortClause
public virtual TOrderBy SortClause { get; set; }
Property Value
StringExpr
DB2 listagg function, the first argument of the listagg function
public TExpression StringExpr { get; set; }
Property Value
Style
public TExpression Style { get; set; }
Property Value
TrimArgument
public virtual TTrimArgument TrimArgument { get; set; }
Property Value
Trim_Expr
public virtual TExpression Trim_Expr { set; }
Property Value
Trim_From_Expr
public virtual TExpression Trim_From_Expr { set; }
Property Value
Typename
public virtual TTypeName Typename { get; set; }
Property Value
WindowDef
Over clause of window function @return
public virtual TWindowDef WindowDef { get; set; }
Property Value
WindowSpecification
public virtual TWindowSpecification WindowSpecification { get; set; }
Property Value
XMLAttributesClause
public virtual TXMLAttributesClause XMLAttributesClause { get; set; }
Property Value
XMLElementNameExpr
public virtual TExpression XMLElementNameExpr { get; set; }
Property Value
XMLElementValueExprList
public virtual TResultColumnList XMLElementValueExprList { get; set; }
Property Value
XMLForestValueList
public virtual TResultColumnList XMLForestValueList { get; set; }
Property Value
XMLType_Instance
public virtual TExpression XMLType_Instance { get; set; }
Property Value
XPath_String
public virtual TExpression XPath_String { get; set; }
Property Value
Methods
accept(TParseTreeVisitor)
public override void accept(TParseTreeVisitor v)
Parameters
acceptChildren(TParseTreeVisitor)
public override void acceptChildren(TParseTreeVisitor v)
Parameters
doParse(TCustomSqlStatement, ESqlClause)
analyze this node
public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
Parameters
psqlTCustomSqlStatementplocationESqlClause
init(object)
Initialize a query tree node.
public override void init(object arg1)
Parameters
arg1object
init(object, object)
public override void init(object arg1, object arg2)
Parameters
isBuiltIn(string, EDbVendor)
public static bool isBuiltIn(string pName, EDbVendor pDBVendor)
Parameters
Returns
isBuiltIn(EDbVendor)
public virtual bool isBuiltIn(EDbVendor pDBVendor)
Parameters
pDBVendorEDbVendor
Returns
setAggregateType(EAggregateType)
public void setAggregateType(EAggregateType at)
Parameters
setAnalyticFunction(TAnalyticFunction)
public void setAnalyticFunction(TAnalyticFunction af)
Parameters
setArgs(TExpressionList)
public void setArgs(TExpressionList el)
Parameters
setExpr1(TExpression)
public void setExpr1(TExpression e)
Parameters
setExpr2(TExpression)
public void setExpr2(TExpression e)
Parameters
setExpr3(TExpression)
public void setExpr3(TExpression e)
Parameters
setExtractXMLArg(TExpressionList)
public void setExtractXMLArg(TExpressionList l)
Parameters
setExtract_time_token(TSourceToken)
public void setExtract_time_token(TSourceToken st)
Parameters
stTSourceToken
setFuncType(int)
public void setFuncType(int ft)
Parameters
ftint
setSortClause(TOrderBy)
public void setSortClause(TOrderBy b)
Parameters
bTOrderBy
setTrimArgument(TTrimArgument)
public void setTrimArgument(TTrimArgument ta)
Parameters
setTypename(TTypeName)
public void setTypename(TTypeName tn)
Parameters
tnTTypeName
setWindowDef(TWindowDef)
public void setWindowDef(TWindowDef w)