Skip to content

Commit

Permalink
Add test case with the WITH PARSER expression, with errors in parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe- committed Aug 26, 2024
1 parent 9b0acc4 commit 31dc0c6
Show file tree
Hide file tree
Showing 3 changed files with 766 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Parser/CreateStatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public static function createProvider(): array
['parser/parseCreateTableEnforcedCheck'],
['parser/parseCreateTableNotEnforcedCheck'],
['parser/parseCreateTableWithInvisibleKey'],
['parser/parseCreateTableWithParser'],
['parser/parseCreateTrigger'],
['parser/parseCreateUser1'],
['parser/parseCreateUser2'],
Expand Down
5 changes: 5 additions & 0 deletions tests/data/parser/parseCreateTableWithParser.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE `mytable` (
`column_one` smallint unsigned DEFAULT NULL,
FULLTEXT KEY `fulltext_index` (`column_one`) /*!50100 WITH PARSER `ngram` */,
CONSTRAINT `my_constraint_1` FOREIGN KEY (`column_one`) REFERENCES `other_table` (`column_two`) ON DELETE RESTRICT ON UPDATE RESTRICT
)
Loading

0 comments on commit 31dc0c6

Please sign in to comment.