Inheritance: MySqlParser
Esempio n. 1
0
        /// <exception cref="System.SqlSyntaxErrorException" />
        public static void Main(string[] args)
        {
            var sql =
                "   ( ( select union select union select)  as j join    (((select union (select)) as t    )   join t2 ) ,(select)as d), t3)";

            // String sql =
            // "((select) as s1, ((((   select  union select          ) as t2)) join (((t2),t4 as t))) ), t1 aS T1";
            // String sql =
            // "  (( select union select union select)  as j  ,(select)as d), t3";
            Console.Out.WriteLine(sql);
            var lexer = new MySqlLexer(sql);

            lexer.NextToken();
            var p    = new SoloParser(lexer);
            var refs = p.Refs();

            Console.Out.WriteLine(refs);
        }
Esempio n. 2
0
 public virtual void TestMain()
 {
     SoloParser.Main(null);
     Assert.IsTrue(true);
 }
Esempio n. 3
0
 /// <exception cref="System.SqlSyntaxErrorException" />
 public static void Main(string[] args)
 {
     var sql =
         "   ( ( select union select union select)  as j join    (((select union (select)) as t    )   join t2 ) ,(select)as d), t3)";
     // String sql =
     // "((select) as s1, ((((   select  union select          ) as t2)) join (((t2),t4 as t))) ), t1 aS T1";
     // String sql =
     // "  (( select union select union select)  as j  ,(select)as d), t3";
     Console.Out.WriteLine(sql);
     var lexer = new MySqlLexer(sql);
     lexer.NextToken();
     var p = new SoloParser(lexer);
     var refs = p.Refs();
     Console.Out.WriteLine(refs);
 }