LOAD DATA INFILE syntax error on different order of params 'starting by' and 'terminated by' #8706
Labels
bug
Something isn't working
correctness
We don't return the same result as MySQL
customer issue
good repro
Easily reproducible bugs
Env:
Docker image - dolthub/dolt-sql-server:latest
Host OS: arch linux, amd64
Steps:
create a csv file for import:
try to import data with firstly 'STARTING BY' then 'TERMINATED BY':
Such query works perfectly.
Then, swap 'TERMINATED BY' and 'STARTING BY':
No problems with MySQL (9) when order is reversed.
Originally, problem was faced with usage of sqlc for Go, which uses such order from in external lib - https://github.com/hexon/mysqltsv/blob/main/mysqltsv.go#L17, so there is no visible way to override it.
The text was updated successfully, but these errors were encountered: