summaryrefslogtreecommitdiff
path: root/ndb/include
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-05-16 12:58:41 +0200
committerunknown <pekka@mysql.com>2006-05-16 12:58:41 +0200
commit0219f8b003f920b84e5ea89c83b712e39b1062b4 (patch)
treeaf7b83501db7d00f78e6d4c0f3a961ca464be4a9 /ndb/include
parentcda752e3cf14345456dd5b8c4b5ca1ffc51a863f (diff)
downloadmariadb-git-0219f8b003f920b84e5ea89c83b712e39b1062b4.tar.gz
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
Diffstat (limited to 'ndb/include')
-rw-r--r--ndb/include/ndbapi/Ndb.hpp12
1 files changed, 6 insertions, 6 deletions
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: