Closed Superchicken closed 7 years ago
My current workaround is changing the SQL query on line 1316 in main.cpp
threaded_insert( "LOAD DATA CONCURRENT INFILE '" + mod_file + "' REPLACE INTO TABLE
Mods
FIELDS TERMINATED BY ',' ENCLOSED BY '\"' ESCAPED BY '\"' LINES TERMINATED BY '\n' (itemId, modName, @vmodValue1, modValue2, modValue3, modValue4, modType, modKey) set modValue1 = nullif(@vmodValue1, '')" );
Where my additions are in bold. I'm not sure how much this will affect performance or if it's a suitable solution.
I modified the schema.sql, it seems to fix the issue. Could you try importing it and run the indexer again?
Thanks, your changes have resolved this issue.
Sure, glad it helped :)
Running on Ubuntu 16.10 mysql 5.7.
I'm receiving error:
Looking at the line causing the error, I notice it is the first line to have no value specified for modValue1:
Manually editing in a "0" for modValue1 and manually executing the SQL query resolves the error for that line, but pushes the error to the next instance of a blank valued modValue1.
It seems like LOAD DATA INFILE isn't handling empty values correctly, source