Commit 6ff1648d authored by pekka@mysql.com's avatar pekka@mysql.com

ndb - compile fix for Solaris 10 AMD64 -max GCC [ ulonglong != Uint64 ]

parent 61057f61
...@@ -3047,14 +3047,16 @@ void ha_ndbcluster::info(uint flag) ...@@ -3047,14 +3047,16 @@ void ha_ndbcluster::info(uint flag)
{ {
Ndb *ndb= get_ndb(); Ndb *ndb= get_ndb();
Uint64 auto_increment_value64;
if (ndb->readAutoIncrementValue((const NDBTAB *) m_table, if (ndb->readAutoIncrementValue((const NDBTAB *) m_table,
auto_increment_value) == -1) auto_increment_value64) == -1)
{ {
const NdbError err= ndb->getNdbError(); const NdbError err= ndb->getNdbError();
sql_print_error("Error %lu in readAutoIncrementValue(): %s", sql_print_error("Error %lu in readAutoIncrementValue(): %s",
(ulong) err.code, err.message); (ulong) err.code, err.message);
auto_increment_value= ~(Uint64)0; auto_increment_value= ~(Uint64)0;
} }
auto_increment_value= (ulonglong)auto_increment_value64;
} }
} }
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
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