diff options
author | antony@ppcg5.local <> | 2007-06-28 13:36:26 -0700 |
---|---|---|
committer | antony@ppcg5.local <> | 2007-06-28 13:36:26 -0700 |
commit | b0b0b0fbc4c679f0ae9e0159ad26eb49ae484ab3 (patch) | |
tree | da2f7e222273c732b24ff4cef082448d41d7eb73 /include/my_base.h | |
parent | b3e29fbd1de8a067ad5994775f870d76ef2f84e7 (diff) | |
download | mariadb-git-b0b0b0fbc4c679f0ae9e0159ad26eb49ae484ab3.tar.gz |
Bug#25511
"Federated INSERT failures"
Federated does not correctly handle "INSERT...ON DUPLICATE KEY UPDATE"
However, implementing such support is not reasonably possible without
increasing complexity of the storage engine: checking that constraints
on remote server match local server and parsing error messages.
This patch causes 'ON DUPLICATE KEY' to fail with ER_DUP_KEY message
if a conflict occurs and not to fail silently.
Diffstat (limited to 'include/my_base.h')
-rw-r--r-- | include/my_base.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/my_base.h b/include/my_base.h index d07a4de8e6a..a26217f8050 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -168,7 +168,13 @@ enum ha_extra_function { These flags are reset by the handler::extra(HA_EXTRA_RESET) call. */ HA_EXTRA_DELETE_CANNOT_BATCH, - HA_EXTRA_UPDATE_CANNOT_BATCH + HA_EXTRA_UPDATE_CANNOT_BATCH, + /* + Inform handler that write_row() should immediately report constraint + violations because a INSERT...ON DUPLICATE KEY UPDATE is in being + performed. + */ + HA_EXTRA_INSERT_WITH_UPDATE }; /* The following is parameter to ha_panic() */ |