From 28d268086c134da75a6517a9d2d89cbc4b842444 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 7 Dec 2007 13:42:44 +0100 Subject: [PATCH] Removed illegal cast --- sql/ha_ndbcluster.cc | 4 ++-- 1 file 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;