public virtual void Visit(SqlConcat node)
 {
     foreach (SqlExpression expression in node)
     {
         VisitInternal(expression);
     }
 }
Esempio n. 2
0
        //TODO: Concat Fix and not introduce problems with numerics. a+b. Translate 'a' + 'b' => concat('a', 'b')
        //public override string Translate(SqlCompilerContext context, SqlBinary node, NodeSection section)
        //{
        //    switch (section)
        //    {
        //        case NodeSection.Entry:
        //            return (node.NodeType == SqlNodeType.RawConcat) ? string.Empty : "CONCAT(";
        //        case NodeSection.Exit:
        //            return (node.NodeType == SqlNodeType.RawConcat) ? string.Empty : ClosingParenthesis;
        //    }
        //    return string.Empty;
        //}

        public override string Translate(SqlCompilerContext context, SqlConcat node, NodeSection section)
        {
            switch (section)
            {
            case NodeSection.Entry:
                return("CONCAT(");

            case NodeSection.Exit:
                return(")");

            default:
                return(string.Empty);
            }
        }
Esempio n. 3
0
 public void Visit(SqlConcat node)
 {
 }