summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-05-25 18:00:55 +0200
committerunknown <pekka@mysql.com>2006-05-25 18:00:55 +0200
commit534c55327166c8bbdb02e89cac418c3384d9674e (patch)
tree5e32483240aa924701c3e83ddc27eb36b165a049 /sql
parent772b438050272eb641051bcd9d65b15c29ac3a24 (diff)
downloadmariadb-git-534c55327166c8bbdb02e89cac418c3384d9674e.tar.gz
ndb - compile fix for Solaris 10 AMD64 -max GCC [ ulonglong != Uint64 ]
sql/ha_ndbcluster.cc: compile fix for Solaris 10 AMD64 -max GCC
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_ndbcluster.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index f14272e7952..5938d76e8a5 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3047,14 +3047,16 @@ void ha_ndbcluster::info(uint flag)
{
Ndb *ndb= get_ndb();
+ Uint64 auto_increment_value64;
if (ndb->readAutoIncrementValue((const NDBTAB *) m_table,
- 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;
}
+ auto_increment_value= (ulonglong)auto_increment_value64;
}
}
DBUG_VOID_RETURN;