summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-05-25 20:00:36 +0200
committerunknown <pekka@mysql.com>2006-05-25 20:00:36 +0200
commit93be6c25231e4ed44b78d1f13479119917ee5aeb (patch)
tree0cadebf791b998f057be009cd7b95bdde7be60b6 /sql
parent2e0f0d2d5cbc6ec3fc18bd433926f598e06366ce (diff)
downloadmariadb-git-93be6c25231e4ed44b78d1f13479119917ee5aeb.tar.gz
ndb - compile fix for Solaris 10 AMD64 -max GCC [ ulonglong != Uint64 ] v5.1
sql/ha_ndbcluster.cc: compile fix for Solaris 10 AMD64 -max GCC [ ulonglong != Uint64 ]
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_ndbcluster.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 3239c154478..3425c638005 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3546,14 +3546,17 @@ void ha_ndbcluster::info(uint flag)
Ndb *ndb= get_ndb();
Ndb_tuple_id_range_guard g(m_share);
+ Uint64 auto_increment_value64;
if (ndb->readAutoIncrementValue(m_table, g.range,
- auto_increment_value) == -1)
+ auto_increment_value64) == -1)
{
const NdbError err= ndb->getNdbError();
sql_print_error("Error %lu in readAutoIncrementValue(): %s",
(ulong) err.code, err.message);
auto_increment_value= ~(Uint64)0;
}
+ else
+ auto_increment_value= (ulonglong)auto_increment_value64;
}
}
DBUG_VOID_RETURN;