Skip to content

Commit 4dd2be7

Browse files
committed
Merge pull request #3 from Fooriva/3.0
Fixing missing classes in package
2 parents 71e06d4 + 3adabb8 commit 4dd2be7

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

src/SQLParser/Node/Different.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

src/SQLParser/Node/IsNot.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

src/SQLParser/Node/NodeFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ private static function buildFromSubtree($subTree) {
354354
'IS' => 'SQLParser\Node\Is',
355355
'IS NOT' => 'SQLParser\Node\IsNot',
356356
'LIKE' => 'SQLParser\Node\Like',
357-
'REGEXP' => 'SQLParser\Node\RegExp',
357+
'REGEXP' => 'SQLParser\Node\Regexp',
358358
'IN' => 'SQLParser\Node\In',
359359
'NOT IN' => 'SQLParser\Node\NotIn',
360360
'+' => 'SQLParser\Node\Plus',

0 commit comments

Comments
 (0)