Ejemplo n.º 1
0
        public static String ConvertTwoWaySql2DisplaySql(String twoWaySql, String[] argNames, Type[] argTypes, Object[] args)
        {
            ICommandContext context;
            {
                InternalSqlParser             parser  = new InternalSqlParser(twoWaySql, false);
                INode                         node    = parser.Parse();
                InternalCommandContextCreator creator = new InternalCommandContextCreator(argNames, argTypes);
                context = creator.CreateCommandContext(args);
                node.Accept(context);
            }
            String preparedSql = context.Sql;

            return(InternalBindVariableUtil.GetCompleteSql(preparedSql, context.BindVariables));
        }
Ejemplo n.º 2
0
 // -------------------------------------------------
 //                                           Various
 //                                           -------
 protected virtual String GetBindVariableText(Object bindVariable)
 {
     return(InternalBindVariableUtil.GetBindVariableText(bindVariable));
 }
Ejemplo n.º 3
0
 protected virtual String GetCompleteSql(Object[] args)
 {
     return(InternalBindVariableUtil.GetCompleteSql(_sql, args));
 }