-
unknown authored
BUG#4775 "Duplicate key requires rollback of transaction" - Improved error message telling that transaction is aborted BUG#4312 "wrong behaviour on insert .. on duplicate key" functionality disabled mysql-test/r/ndb_insert.result: New tests for fduplicate inserts in combination with transaction New tests for INSERT IGNORE and REPLACE mysql-test/t/ndb_insert.test: New tests for fduplicate inserts in combination with transaction New tests for INSERT IGNORE and REPLACE ndb/src/ndbapi/NdbConnection.cpp: Return error 4350 "Transaction already aborted" if execute(Commit) is called when theCommitStatus==Aborted Add DBUG_PRINT's ndb/src/ndbapi/ndberror.c: Add new error message indicating that the transaction already has been aborted. sql/ha_ndbcluster.cc: Map all error code 0 to 1 in order to catch errors caused by NdbApi returning -1 without having set an error code. Use ndb object in THD in get_error_message BUG# 4312 Return HA_ERR_WRONG_COMMAND if extra(HA_EXTRA_IGNORE_DUP_KEY) is called Only use writeTuple if command is REPLACE sql/ha_ndbcluster.h: Added member variable to keep track of when HA_EXTRA_IGNORE_DUP_KEY is used, but NDB can't support it.
38238355