summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi/NdbDictionaryImpl.cpp
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-05-17 12:40:10 +0200
committerunknown <pekka@mysql.com>2006-05-17 12:40:10 +0200
commit4e6efa1023034ba288d3c5f72f3545e0bfbdd53c (patch)
tree097d52a6d6b6447f0dbd8b838d030da8ffceb423 /ndb/src/ndbapi/NdbDictionaryImpl.cpp
parent864bd2833123fd05f9ef5de4955452b09b2e0d6d (diff)
downloadmariadb-git-4e6efa1023034ba288d3c5f72f3545e0bfbdd53c.tar.gz
ndb - bug#14509 [related] re-do auto-incr error handling
ndb/include/ndbapi/Ndb.hpp: make auto-incr methods return int 0/-1 ndb/src/ndbapi/Ndb.cpp: make auto-incr methods return int 0/-1 ndb/src/ndbapi/NdbDictionaryImpl.cpp: make auto-incr methods return int 0/-1 ndb/test/ndbapi/testDict.cpp: make auto-incr methods return int 0/-1 ndb/tools/restore/consumer_restore.cpp: make auto-incr methods return int 0/-1 sql/ha_ndbcluster.cc: make auto-incr methods return int 0/-1
Diffstat (limited to 'ndb/src/ndbapi/NdbDictionaryImpl.cpp')
-rw-r--r--ndb/src/ndbapi/NdbDictionaryImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/NdbDictionaryImpl.cpp b/ndb/src/ndbapi/NdbDictionaryImpl.cpp
index b3824df48f4..58452152dd9 100644
--- a/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+++ b/ndb/src/ndbapi/NdbDictionaryImpl.cpp
@@ -1743,7 +1743,7 @@ NdbDictInterface::createOrAlterTable(Ndb & ndb,
if (haveAutoIncrement) {
if (ndb.setAutoIncrementValue(impl.m_externalName.c_str(),
- autoIncrementValue) == ~(Uint64)0) {
+ autoIncrementValue, false) == -1) {
DBUG_ASSERT(ndb.theError.code != 0);
m_error= ndb.theError;
ret = -1;