src/Components/DataType.php 1 location
|
@@ 122-124 (lines=3) @@
|
| 119 |
|
|
| 120 |
|
if ($state === 0) { |
| 121 |
|
$ret->name = strtoupper($token->value); |
| 122 |
|
if (($token->type !== Token::TYPE_KEYWORD) || (!($token->flags & Token::FLAG_KEYWORD_DATA_TYPE))) { |
| 123 |
|
$parser->error(__('Unrecognized data type.'), $token); |
| 124 |
|
} |
| 125 |
|
$state = 1; |
| 126 |
|
} elseif ($state === 1) { |
| 127 |
|
if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) { |
src/Statement.php 1 location
|
@@ 239-243 (lines=5) @@
|
| 236 |
|
// Only keywords are relevant here. Other parts of the query are |
| 237 |
|
// processed in the functions below. |
| 238 |
|
if ($token->type !== Token::TYPE_KEYWORD) { |
| 239 |
|
if (($token->type !== TOKEN::TYPE_COMMENT) |
| 240 |
|
&& ($token->type !== Token::TYPE_WHITESPACE) |
| 241 |
|
) { |
| 242 |
|
$parser->error(__('Unexpected token.'), $token); |
| 243 |
|
} |
| 244 |
|
continue; |
| 245 |
|
} |
| 246 |
|
|