public override void EnterBinaryComparasionPredicate([NotNull] MySqlParser.BinaryComparasionPredicateContext context)
 {//обернуть в два листенера
     if (_depth == _tmpDepth)
     {
         if (!context.GetChild(2).GetChild(0).GetType().ToString().Contains("SubqueryExpessionAtom"))
         {
             if (context.Stop.Type != 968)
             {
                 ExprColumnNames.Add(context.left.GetText());
                 WhereList.Add(new WhereStructure(context.GetText(), context.left.GetText()));
             }
             else
             {
                 if (context.Stop.Type == 968)
                 {
                     JoinListener    tmpJoinListener = new JoinListener();
                     ParseTreeWalker wlk             = new ParseTreeWalker();
                     wlk.Walk(tmpJoinListener, context);
                     JoinStructures.Add(new JoinStructure(context.Start.Text, context.Stop.Text,
                                                          tmpJoinListener.Output));
                 }
             }
         }
     }
 }
Пример #2
0
 public override void EnterBinaryComparasionPredicate([NotNull] MySqlParser.BinaryComparasionPredicateContext context)
 {//обернуть в два листенера
     if (context.Stop.Type != 968)
     {
         ExprColumnNames.Add(context.left.GetText());
         WhereList.Add(new WhereStructure(context.GetText(), context.left.GetText()));
     }
     else
     {
         if (context.Stop.Type == 968)
         {
             JoinListener    tmpJoinListener = new JoinListener();
             ParseTreeWalker wlk             = new ParseTreeWalker();
             wlk.Walk(tmpJoinListener, context);
             JoinStructures.Add(new JoinStructure(context.Start.Text, context.Stop.Text, tmpJoinListener.Output));
         }
     }
 }