Skip to content

Commit aea568f

Browse files
committed
sorting the allowed keywords and adding between
Signed-off-by: iifawzi <iifawzie@gmail.com>
1 parent eff7fa7 commit aea568f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/Components/Expression.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,21 @@ class Expression extends Component
3232
* @var array<string, int>
3333
*/
3434
private static $ALLOWED_KEYWORDS = [
35+
'AND' => 1,
3536
'AS' => 1,
36-
'DUAL' => 1,
37-
'REGEXP' => 1,
37+
'BETWEEN' => 1,
3838
'CASE' => 1,
39+
'DUAL' => 1,
3940
'DIV' => 1,
40-
'AND' => 1,
41+
'IS' => 1,
42+
'MOD' => 1,
43+
'NOT' => 1,
44+
'NOT NULL' => 1,
45+
'NULL' => 1,
4146
'OR' => 1,
47+
'OVER' => 1,
48+
'REGEXP' => 1,
4249
'XOR' => 1,
43-
'NOT' => 1,
44-
'MOD' => 1,
45-
46-
'OVER' => 2,
47-
48-
'IS' => 3,
49-
'NOT NULL' => 4,
50-
'NULL' => 4,
5150
];
5251

5352
/**

0 commit comments

Comments
 (0)