FIX #14241 Mysql 8 compatibility
This commit is contained in:
parent
f26a64fb88
commit
521c4679d9
@ -448,8 +448,9 @@ class DoliDBMysqli extends DoliDB
|
|||||||
1215 => 'DB_ERROR_CANNOT_ADD_FOREIGN_KEY_CONSTRAINT',
|
1215 => 'DB_ERROR_CANNOT_ADD_FOREIGN_KEY_CONSTRAINT',
|
||||||
1216 => 'DB_ERROR_NO_PARENT',
|
1216 => 'DB_ERROR_NO_PARENT',
|
||||||
1217 => 'DB_ERROR_CHILD_EXISTS',
|
1217 => 'DB_ERROR_CHILD_EXISTS',
|
||||||
1396 => 'DB_ERROR_USER_ALREADY_EXISTS', // When creating user already existing
|
1396 => 'DB_ERROR_USER_ALREADY_EXISTS', // When creating a user that already existing
|
||||||
1451 => 'DB_ERROR_CHILD_EXISTS'
|
1451 => 'DB_ERROR_CHILD_EXISTS',
|
||||||
|
1826 => 'DB_ERROR_KEY_NAME_ALREADY_EXISTS'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isset($errorcode_map[$this->db->errno])) {
|
if (isset($errorcode_map[$this->db->errno])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user