Exemplo n.º 1
0
        public override string Translate(SqlCompilerContext context, SqlNextValue node, NodeSection section)
        {
            switch (section)
            {
            case NodeSection.Exit:
                return(".nextval");

            default:
                return(string.Empty);
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public override string Translate(SqlCompilerContext context, SqlNextValue node, NodeSection section)
        {
            switch (section)
            {
            case NodeSection.Entry:
                return("GEN_ID(");

            case NodeSection.Exit:
                return("," + node.Increment + ")");
            }
            return(string.Empty);
        }
Exemplo n.º 3
0
        public override string Translate(SqlCompilerContext context, SqlNextValue node, NodeSection section)
        {
            switch (section)
            {
            case NodeSection.Entry:
                return("nextval('");

            case NodeSection.Exit:
                return("')");
            }
            return(string.Empty);
        }
Exemplo n.º 4
0
 public override string Translate(SqlCompilerContext context, SqlNextValue node, NodeSection section)
 {
     if (section == NodeSection.Entry)
     {
         return("nextval('");
     }
     if (section == NodeSection.Exit)
     {
         return("')");
     }
     return(string.Empty);
 }
Exemplo n.º 5
0
 /// <inheritdoc/>
 public override string Translate(SqlCompilerContext context, SqlNextValue node, NodeSection section)
 {
     throw new NotSupportedException(Strings.ExDoesNotSupportSequences);
 }
Exemplo n.º 6
0
 public virtual void Visit(SqlNextValue value)
 {
 }
Exemplo n.º 7
0
 public void Visit(SqlNextValue value)
 {
 }