diff options
-rw-r--r-- | sql/ha_ndbcluster.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 147aeeb24a8..b6d496fe915 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -540,7 +540,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++) @@ -552,7 +552,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans) (const NDBINDEX *) m_index[i].unique_index; if (unique_index && unique_index->getIndexTable() && - (uint) unique_index->getIndexTable()->getTableId() == error_data) + unique_index->getIndexTable()->getTableId() == (int) error_data) { dupkey= i; break; |