Bug #1808 | LOAD DATA INFILE AUTO_INCREMENT + IGNORE conflict | ||
---|---|---|---|
Submitted: | 11 Nov 2003 14:05 | Modified: | 13 Nov 2003 16:10 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.23.54 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[11 Nov 2003 14:05]
[ name withheld ]
[11 Nov 2003 14:09]
[ name withheld ]
This "feature" is necessary to track the load sequence of records from text-files.
[13 Nov 2003 16:10]
Dean Ellis
IGNORE and REPLACE can only function if there is a unique index of some sort in order for duplicates to be identified. You have no unique index on your three incoming columns, so this is functioning as designed. Thank you.
[14 Nov 2003 0:36]
[ name withheld ]
I'd imagine that one can specify it's own unique key by specifying fields in the selected fields part. In this way, you can leave out the auto_increment field as part of the key. Is there a workaround for this?