File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace SQLParser \Node ;
3
+
4
+ /**
5
+ * This class represents a Is operation in an SQL expression.
6
+ *
7
+ * @author David Négrier <[email protected] >
8
+ */
9
+ class Different extends AbstractTwoOperandsOperator {
10
+ /**
11
+ * Returns the symbol for this operator.
12
+ * @return string
13
+ */
14
+ protected function getOperatorSymbol () {
15
+ return '<> ' ;
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace SQLParser \Node ;
3
+
4
+ /**
5
+ * This class represents a Is operation in an SQL expression.
6
+ *
7
+ * @author David Négrier <[email protected] >
8
+ */
9
+ class IsNot extends AbstractTwoOperandsOperator {
10
+ /**
11
+ * Returns the symbol for this operator.
12
+ * @return string
13
+ */
14
+ protected function getOperatorSymbol () {
15
+ return 'IS NOT ' ;
16
+ }
17
+ }
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ private static function buildFromSubtree($subTree) {
354
354
'IS ' => 'SQLParser\Node\Is ' ,
355
355
'IS NOT ' => 'SQLParser\Node\IsNot ' ,
356
356
'LIKE ' => 'SQLParser\Node\Like ' ,
357
- 'REGEXP ' => 'SQLParser\Node\RegExp ' ,
357
+ 'REGEXP ' => 'SQLParser\Node\Regexp ' ,
358
358
'IN ' => 'SQLParser\Node\In ' ,
359
359
'NOT IN ' => 'SQLParser\Node\NotIn ' ,
360
360
'+ ' => 'SQLParser\Node\Plus ' ,
You can’t perform that action at this time.
0 commit comments