public FunctionReference(FunctionReference old) { CopyMembers(old); }
public override ParserLib.Node Interpret() { this.functionReference = new FunctionReference(this); return(base.Interpret()); }
private void CopyMembers(FunctionReference old) { this.node = old.node; this.databaseObject = old.databaseObject; this.datasetName = old.datasetName; this.databaseName = old.databaseName; this.schemaName = old.schemaName; this.databaseObjectName = old.databaseObjectName; this.systemFunctionName = old.systemFunctionName; }
private void CopyMembers(FunctionReference old) { this.systemFunctionName = old.systemFunctionName; this.isUdf = old.isUdf; }
private void InitializeMembers() { this.functionReference = null; }
public FunctionReference(FunctionReference old) : base(old) { CopyMembers(old); }
public override ParserLib.Node Interpret() { this.functionReference = new FunctionReference(this); return base.Interpret(); }
private string GetResolvedFunctionName(FunctionReference function) { if (function.IsSystem) { // This is a built-in function return function.SystemFunctionName.ToUpperInvariant(); } else if (function.DatabaseObject != null) { // If it is linked up to the schema already return GetResolvedFunctionName(function.DatabaseObject.DatabaseName, function.DatabaseObject.SchemaName, function.DatabaseObject.ObjectName); } else { // If it's not resolved yet against the schema return GetResolvedFunctionName(function.DatabaseName, function.SchemaName, function.DatabaseObjectName); } }