mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
BUG#17138: Crash in stored procedure after fatal error that wasn't a real fatal error
This commit is contained in:
@ -977,6 +977,9 @@ public:
|
||||
ignorable than others. E.g. the partition handler can get inserts
|
||||
into a range where there is no partition and this is an ignorable
|
||||
error.
|
||||
HA_ERR_FOUND_DUPP_UNIQUE is a special case in MyISAM that means the
|
||||
same thing as HA_ERR_FOUND_DUPP_KEY but can in some cases lead to
|
||||
a slightly different error message.
|
||||
*/
|
||||
#define HA_CHECK_DUPP_KEY 1
|
||||
#define HA_CHECK_DUPP_UNIQUE 2
|
||||
@ -985,9 +988,8 @@ public:
|
||||
{
|
||||
if (!error ||
|
||||
((flags & HA_CHECK_DUPP_KEY) &&
|
||||
error == HA_ERR_FOUND_DUPP_KEY) ||
|
||||
((flags & HA_CHECK_DUPP_UNIQUE) &&
|
||||
error == HA_ERR_FOUND_DUPP_UNIQUE))
|
||||
(error == HA_ERR_FOUND_DUPP_KEY ||
|
||||
error == HA_ERR_FOUND_DUPP_UNIQUE)))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user