diff options
author | unknown <pekka@mysql.com> | 2006-05-16 12:58:41 +0200 |
---|---|---|
committer | unknown <pekka@mysql.com> | 2006-05-16 12:58:41 +0200 |
commit | 0219f8b003f920b84e5ea89c83b712e39b1062b4 (patch) | |
tree | af7b83501db7d00f78e6d4c0f3a961ca464be4a9 /sql | |
parent | cda752e3cf14345456dd5b8c4b5ca1ffc51a863f (diff) | |
download | mariadb-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 'sql')
-rw-r--r-- | sql/ha_ndbcluster.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 138e8c72e7a..a7f680ffc1c 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -2197,11 +2197,11 @@ int ha_ndbcluster::write_row(byte *record) Ndb *ndb= get_ndb(); Uint64 next_val= (Uint64) table->next_number_field->val_int() + 1; DBUG_PRINT("info", - ("Trying to set next auto increment value to %lu", - (ulong) next_val)); - if (ndb->setAutoIncrementValue((const NDBTAB *) m_table, next_val, TRUE)) - DBUG_PRINT("info", - ("Setting next auto increment value to %u", next_val)); + ("Trying to set next auto increment value to %llu", + (ulonglong) next_val)); + if (ndb->setAutoIncrementValue((const NDBTAB *) m_table, next_val, TRUE) + == ~(Uint64)0) + ERR_RETURN(ndb->getNdbError()); } m_skip_auto_increment= TRUE; |