Removed illegal cast

parent fc6f839b
...@@ -540,7 +540,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans) ...@@ -540,7 +540,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
err.code, res)); err.code, res));
if (res == HA_ERR_FOUND_DUPP_KEY) if (res == HA_ERR_FOUND_DUPP_KEY)
{ {
uint error_data= (uint) err.details; char *error_data= err.details;
uint dupkey= MAX_KEY; uint dupkey= MAX_KEY;
for (uint i= 0; i < MAX_KEY; i++) for (uint i= 0; i < MAX_KEY; i++)
...@@ -552,7 +552,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans) ...@@ -552,7 +552,7 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
(const NDBINDEX *) m_index[i].unique_index; (const NDBINDEX *) m_index[i].unique_index;
if (unique_index && if (unique_index &&
unique_index->getIndexTable() && unique_index->getIndexTable() &&
(uint) unique_index->getIndexTable()->getTableId() == error_data) unique_index->getIndexTable()->getTableId() == (int) error_data)
{ {
dupkey= i; dupkey= i;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment