diff options
author | Hugues Peccatte <hugues.peccatte@aareon.fr> | 2019-11-01 09:36:57 +0100 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@aareon.fr> | 2019-11-01 10:27:06 +0100 |
commit | ccb20a1c7c1cbe75645f9d19a908bed4c98672fd (patch) | |
tree | 4b6fd46f53b1cfe93d5301f676402ee1d8cb35ee /src/Components/PartitionDefinition.php | |
parent | fe98a34d4c5e557fbc3c0ae1152f8570bcaf2991 (diff) | |
download | sql-parser-ccb20a1c7c1cbe75645f9d19a908bed4c98672fd.zip sql-parser-ccb20a1c7c1cbe75645f9d19a908bed4c98672fd.tar.gz sql-parser-ccb20a1c7c1cbe75645f9d19a908bed4c98672fd.tar.bz2 |
Add test case to check partition name starting by a number
Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr>
Diffstat (limited to 'src/Components/PartitionDefinition.php')
-rw-r--r-- | src/Components/PartitionDefinition.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Components/PartitionDefinition.php b/src/Components/PartitionDefinition.php index 841a16a..53da148 100644 --- a/src/Components/PartitionDefinition.php +++ b/src/Components/PartitionDefinition.php @@ -172,7 +172,7 @@ class PartitionDefinition extends Component // Looking ahead for a 'VALUES' keyword. // Loop until the end of the partition name (delimited by a whitespace) while ($nextToken = $list->tokens[++$list->idx]) { - if ($nextToken->type === Token::TYPE_WHITESPACE) { + if ($nextToken->type !== Token::TYPE_NONE) { break; } $ret->name .= $nextToken->value; |