@@ -149,7 +149,7 @@ public function process($tokens) {
149149 case 'PARTITIONS ' :
150150 case 'SUBPARTITIONS ' :
151151 $ currCategory = 'PARTITION_NUM ' ;
152- $ expr = array ('expr_type ' => constant ('ExpressionType:: ' . substr ($ upper , 0 , -1 ) . '_COUNT ' ),
152+ $ expr = array ('expr_type ' => constant ('PHPSQLParser\utils\ ExpressionType:: ' . substr ($ upper , 0 , -1 ) . '_COUNT ' ),
153153 'base_expr ' => false , 'sub_tree ' => array ($ this ->getReservedType ($ trim )),
154154 'storage ' => substr ($ base_expr , 0 , -strlen ($ token )));
155155 $ base_expr = $ token ;
@@ -163,7 +163,7 @@ public function process($tokens) {
163163
164164 case 'HASH ' :
165165 case 'KEY ' :
166- $ expr [] = array ('expr_type ' => constant ('ExpressionType:: ' . $ prevCategory . '_ ' . $ upper ),
166+ $ expr [] = array ('expr_type ' => constant ('PHPSQLParser\utils\ ExpressionType:: ' . $ prevCategory . '_ ' . $ upper ),
167167 'base_expr ' => false , 'linear ' => ($ currCategory === 'LINEAR ' ), 'sub_tree ' => false ,
168168 'storage ' => substr ($ base_expr , 0 , -strlen ($ token )));
169169
@@ -180,7 +180,7 @@ public function process($tokens) {
180180
181181 case 'ALGORITHM ' :
182182 if ($ currCategory === 'KEY ' ) {
183- $ expr [] = array ('expr_type ' => constant ('ExpressionType:: ' . $ prevCategory . '_KEY_ALGORITHM ' ),
183+ $ expr [] = array ('expr_type ' => constant ('PHPSQLParser\utils\ ExpressionType:: ' . $ prevCategory . '_KEY_ALGORITHM ' ),
184184 'base_expr ' => false , 'sub_tree ' => false ,
185185 'storage ' => substr ($ base_expr , 0 , -strlen ($ token )));
186186
@@ -201,7 +201,7 @@ public function process($tokens) {
201201
202202 case 'RANGE ' :
203203 case 'LIST ' :
204- $ expr [] = array ('expr_type ' => constant ('ExpressionType::PARTITION_ ' . $ upper ), 'base_expr ' => false ,
204+ $ expr [] = array ('expr_type ' => constant ('PHPSQLParser\utils\ ExpressionType::PARTITION_ ' . $ upper ), 'base_expr ' => false ,
205205 'sub_tree ' => false , 'storage ' => substr ($ base_expr , 0 , -strlen ($ token )));
206206
207207 $ last = array_pop ($ parsed );
0 commit comments