Skip to content

Commit 31dc0c6

Browse files
committed
Add test case with the WITH PARSER expression, with errors in parsing.
1 parent 9b0acc4 commit 31dc0c6

File tree

3 files changed

+766
-0
lines changed

3 files changed

+766
-0
lines changed

tests/Parser/CreateStatementTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public static function createProvider(): array
6666
['parser/parseCreateTableEnforcedCheck'],
6767
['parser/parseCreateTableNotEnforcedCheck'],
6868
['parser/parseCreateTableWithInvisibleKey'],
69+
['parser/parseCreateTableWithParser'],
6970
['parser/parseCreateTrigger'],
7071
['parser/parseCreateUser1'],
7172
['parser/parseCreateUser2'],
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CREATE TABLE `mytable` (
2+
`column_one` smallint unsigned DEFAULT NULL,
3+
FULLTEXT KEY `fulltext_index` (`column_one`) /*!50100 WITH PARSER `ngram` */,
4+
CONSTRAINT `my_constraint_1` FOREIGN KEY (`column_one`) REFERENCES `other_table` (`column_two`) ON DELETE RESTRICT ON UPDATE RESTRICT
5+
)

0 commit comments

Comments
 (0)