diff options
author | Hugues Peccatte <hugues.peccatte@aareon.fr> | 2019-10-28 23:26:05 +0100 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-10-28 23:30:31 +0100 |
commit | e517fbbcaa58bbd1edf0921e3c0b7854caa28df5 (patch) | |
tree | 8a36440c1b03c92f9db1efc8cb8f22c3eb0e7487 /src | |
parent | b35c21f82e7202d739f6349a583b11e6d32b2b64 (diff) | |
download | sql-parser-e517fbbcaa58bbd1edf0921e3c0b7854caa28df5.zip sql-parser-e517fbbcaa58bbd1edf0921e3c0b7854caa28df5.tar.gz sql-parser-e517fbbcaa58bbd1edf0921e3c0b7854caa28df5.tar.bz2 |
Manage "CHECK" keyword
Even if this keyword is ignored by MySQL, it should be parsed.
Ref: #167
Signed-off-by: Hugues Peccatte <hugues.peccatte@aareon.fr>
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/CreateDefinition.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Components/CreateDefinition.php b/src/Components/CreateDefinition.php index ed79af7..0f44e09 100644 --- a/src/Components/CreateDefinition.php +++ b/src/Components/CreateDefinition.php @@ -79,7 +79,12 @@ class CreateDefinition extends Component ), 'VIRTUAL' => 10, 'PERSISTENT' => 11, - 'STORED' => 11 + 'STORED' => 11, + 'CHECK' => array( + 12, + 'expr', + array('parenthesesDelimited' => true), + ) // Common entries. // // NOTE: Some of the common options are not in the same order which |