Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-07-04 09:30:35+02:00, tomas@stripped +1 -0
backwards comptability for getAutoincrementValue
storage/ndb/include/ndbapi/Ndb.hpp@stripped, 2007-07-04 09:30:33+02:00, tomas@stripped +10 -0
backwards comptability for getAutoincrementValue
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: tomas
# Host: whalegate.ndb.mysql.com
# Root: /home/tomas/mysql-5.1-telco-6.2
--- 1.70/storage/ndb/include/ndbapi/Ndb.hpp 2007-06-15 09:17:21 +02:00
+++ 1.71/storage/ndb/include/ndbapi/Ndb.hpp 2007-07-04 09:30:33 +02:00
@@ -1584,6 +1584,16 @@
int setAutoIncrementValue(const NdbDictionary::Table * aTable,
TupleIdRange & range, Uint64 tupleId,
bool increase);
+#ifdef NDBAPI_50_COMPAT
+ Uint64 getAutoIncrementValue(const NdbDictionary::Table * aTable,
+ Uint32 cacheSize = 1)
+ {
+ Uint64 val;
+ if (getAutoIncrementValue(aTable, val, cacheSize, 1, 1) == -1)
+ return ~(Uint64)0;
+ return val;
+ }
+#endif
private:
int getTupleIdFromNdb(const NdbTableImpl* table,
TupleIdRange & range, Uint64 & tupleId,
| Thread |
|---|
| • bk commit into 5.1 tree (tomas:1.2567) | tomas | 4 Jul |