Exemplo n.º 1
0
        public virtual ISqlNode VisitObjectIdentifier(SqlObjectIdentifierNode n)
        {
            var server = Visit(n.Server) as SqlIdentifierNode;
            var db     = Visit(n.Database) as SqlIdentifierNode;
            var schema = Visit(n.Schema) as SqlIdentifierNode;
            var name   = Visit(n.Name) as SqlIdentifierNode;

            return(n.Update(server, db, schema, name));
        }
Exemplo n.º 2
0
 public override ISqlNode VisitObjectIdentifier(SqlObjectIdentifierNode n)
 {
     // Treat the object identifier as a single atomic value for the purposes of
     // the symbol table
     // TODO: How to handle correctly? We might refer to x.Id in one place but just
     // "Id" later so if we just see "Id" we might want to also see anything that
     // ends in ".Id" (and if more than one, we might want to complain about being
     // unable to pick)
     Current.GetInfoOrThrow(n.ToString(), n.Location);
     return(n);
 }
Exemplo n.º 3
0
        public ISqlNode VisitObjectIdentifier(SqlObjectIdentifierNode n)
        {
            if (n.Server != null)
            {
                Append(n.Server, ".");
            }

            if (n.Database != null)
            {
                Append(n.Database, ".");
            }

            if (n.Schema != null)
            {
                Append(n.Schema, ".");
            }

            Visit(n.Name);
            return(n);
        }
 public override ISqlNode VisitObjectIdentifier(SqlObjectIdentifierNode n)
 {
     return(base.VisitObjectIdentifier(n));
 }