Deveel.Data.Sql.Query.FromTableSubQuerySource.MatchesReference C# (CSharp) Method

MatchesReference() public method

public MatchesReference ( string catalog, string schema, string table ) : bool
catalog string
schema string
table string
return bool
        public bool MatchesReference(string catalog, string schema, string table)
        {
            if (schema == null && table == null)
                return true;

            if (AliasName != null) {
                string ts = AliasName.Parent.Name;
                string tt = AliasName.Name;
                if (schema == null)
                    return StringCompare(tt, table);
                if (StringCompare(tt, table) && StringCompare(ts, schema))
                    return true;
            }

            // No way to determine if there is a match
            return false;
        }