Commit 9c06c80d authored by unknown's avatar unknown
Browse files

ha_innodb.cc:

  Backport Jan's fix of the LOAD DATA INFILE REPLACE duplicate key error bug (Bug #5835) to 4.0


sql/ha_innodb.cc:
  Backport Jan's fix of the LOAD DATA INFILE REPLACE duplicate key error bug (Bug #5835) to 4.0
parent 61ac8324
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2285,7 +2285,9 @@ ha_innobase::write_row(
	        if (error == DB_DUPLICATE_KEY
		    && (user_thd->lex.sql_command == SQLCOM_REPLACE
			|| user_thd->lex.sql_command
			                 == SQLCOM_REPLACE_SELECT)) {
			                 == SQLCOM_REPLACE_SELECT
		    	|| (user_thd->lex.sql_command == SQLCOM_LOAD
			    && user_thd->lex.duplicates == DUP_REPLACE))) {

		        skip_auto_inc_decr= TRUE;
		}