예제 #1
0
 public FunctionReference(FunctionReference old)
 {
     CopyMembers(old);
 }
예제 #2
0
        public override ParserLib.Node Interpret()
        {
            this.functionReference = new FunctionReference(this);

            return(base.Interpret());
        }
예제 #3
0
        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;
        }
예제 #4
0
 private void CopyMembers(FunctionReference old)
 {
     this.systemFunctionName = old.systemFunctionName;
     this.isUdf = old.isUdf;
 }
예제 #5
0
 private void InitializeMembers()
 {
     this.functionReference = null;
 }
예제 #6
0
 private void CopyMembers(FunctionReference old)
 {
     this.systemFunctionName = old.systemFunctionName;
     this.isUdf = old.isUdf;
 }
예제 #7
0
 public FunctionReference(FunctionReference old)
     : base(old)
 {
     CopyMembers(old);
 }
예제 #8
0
 private void InitializeMembers()
 {
     this.functionReference = null;
 }
예제 #9
0
        public override ParserLib.Node Interpret()
        {
            this.functionReference = new FunctionReference(this);

            return base.Interpret();
        }
예제 #10
0
 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);
     }
 }