You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2fdf5bf
Browse filesBrowse the repository at this point in the historyBrowse files
mysql: keep REPLACE INTO when generating a :copyfrom LOAD DATA
A :copyfrom query written as REPLACE INTO generated
LOAD DATA LOCAL INFILE '%s' INTO TABLE ..., dropping the REPLACE.
MySQL's default for LOAD DATA is to skip rows that collide on a
primary or unique key, so the upsert the query asked for silently
became a skip.
The parser already reports it (marino ast.InsertStmt.IsReplace), but
nothing read the bit. Carry it on ast.InsertStmt, derive it from the
raw statement in the compiler, add it to plugin.Query, and emit
REPLACE INTO TABLE from the template.
Fixes#4339
0 commit comments