mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Merge mysql.com:/home/marty/MySQL/mysql-5.0-ndb
into mysql.com:/home/marty/MySQL/mysql-5.1-new-ndb sql/ha_ndbcluster.cc: Merge
This commit is contained in:
commit
e7af30694a
1 changed files with 2 additions and 2 deletions
|
@ -588,7 +588,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
|
|||
err.code, res));
|
||||
if (res == HA_ERR_FOUND_DUPP_KEY)
|
||||
{
|
||||
uint error_data= (uint) err.details;
|
||||
char *error_data= err.details;
|
||||
uint dupkey= MAX_KEY;
|
||||
|
||||
for (uint i= 0; i < MAX_KEY; i++)
|
||||
|
@ -599,7 +599,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
|
|||
const NDBINDEX *unique_index=
|
||||
(const NDBINDEX *) m_index[i].unique_index;
|
||||
if (unique_index &&
|
||||
(uint) unique_index->getObjectId() == error_data)
|
||||
(uint) unique_index->getObjectId() == (int) error_data)
|
||||
{
|
||||
dupkey= i;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue