From 0219f8b003f920b84e5ea89c83b712e39b1062b4 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 16 May 2006 12:58:41 +0200 Subject: ndb - bug#14509 [related] setAutoIncrement: add error handling ndb/include/ndbapi/Ndb.hpp: setAutoIncrement: add error handling ndb/src/ndbapi/Ndb.cpp: setAutoIncrement: add error handling ndb/src/ndbapi/NdbDictionaryImpl.cpp: setAutoIncrement: add error handling ndb/tools/restore/consumer_restore.cpp: setAutoIncrement: add error handling sql/ha_ndbcluster.cc: setAutoIncrement: add error handling --- ndb/include/ndbapi/Ndb.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ndb/include') diff --git a/ndb/include/ndbapi/Ndb.hpp b/ndb/include/ndbapi/Ndb.hpp index b9f5aa123b8..f6610b29ad4 100644 --- a/ndb/include/ndbapi/Ndb.hpp +++ b/ndb/include/ndbapi/Ndb.hpp @@ -1432,7 +1432,7 @@ public: * * @param cacheSize number of values to cache in this Ndb object * - * @return tuple id or 0 on error + * @return tuple id or ~(Uint64)0 on error. */ Uint64 getAutoIncrementValue(const char* aTableName, Uint32 cacheSize = 1); @@ -1440,14 +1440,14 @@ public: Uint32 cacheSize = 1); Uint64 readAutoIncrementValue(const char* aTableName); Uint64 readAutoIncrementValue(const NdbDictionary::Table * aTable); - bool setAutoIncrementValue(const char* aTableName, Uint64 val, - bool increase = false); - bool setAutoIncrementValue(const NdbDictionary::Table * aTable, Uint64 val, - bool increase = false); + Uint64 setAutoIncrementValue(const char* aTableName, Uint64 val, + bool increase = false); + Uint64 setAutoIncrementValue(const NdbDictionary::Table * aTable, Uint64 val, + bool increase = false); private: Uint64 getTupleIdFromNdb(Ndb_local_table_info* info, Uint32 cacheSize); Uint64 readTupleIdFromNdb(Ndb_local_table_info* info); - bool setTupleIdInNdb(Ndb_local_table_info* info, Uint64 val, bool increase); + Uint64 setTupleIdInNdb(Ndb_local_table_info* info, Uint64 val, bool increase); Uint64 opTupleIdOnNdb(Ndb_local_table_info* info, Uint64 opValue, Uint32 op); public: -- cgit v1.2.1