Skip to content

Commit

Permalink
Add test case with parser for issue phpmyadmin#578.
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe- committed Sep 3, 2024
1 parent 1b18ba3 commit a004a6c
Show file tree
Hide file tree
Showing 3 changed files with 511 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Parser/LoadStatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static function loadProvider(): array
['parser/parseLoad5'],
['parser/parseLoad6'],
['parser/parseLoad7'],
['parser/parseLoad8'],
['parser/parseLoadErr1'],
['parser/parseLoadErr2'],
['parser/parseLoadErr3'],
Expand Down
8 changes: 8 additions & 0 deletions tests/data/parser/parseLoad8.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Query from https://github.com/phpmyadmin/sql-parser/issues/578
-- Issue was that Lexer detected ".e1" as number token.

LOAD DATA LOCAL INFILE '/home/user/myloadfile.csv'
IGNORE INTO TABLE erp.e1_table
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\n'
IGNORE 0 LINES;
Loading

0 comments on commit a004a6c

Please sign in to comment.