diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2005-01-06 21:13:04 +0100 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2005-01-06 21:13:04 +0100 |
commit | 58f8f9b3ca30977cbd003cdc06fffc41a96a3557 (patch) | |
tree | 0ef3691f140cae1f4b492f5e1fde0df8a09cdc00 /ndb/src/ndbapi/Ndberr.cpp | |
parent | d42ff5df42e3acd43f7512b6f6fc1f2e9980e355 (diff) | |
download | mariadb-git-58f8f9b3ca30977cbd003cdc06fffc41a96a3557.tar.gz |
updated event example to make use of new NdbError member in NdbEventOperation
added my_pthread_init to get dbug print correct in Hugo
added define for event error code
ndb/examples/ndbapi_event_example/ndbapi_event.cpp:
updated event example to make use of new NdbError member in NdbEventOperation
+ use define to check error code
ndb/include/kernel/signaldata/CreateEvnt.hpp:
updated create event signal to use define
ndb/include/ndbapi/NdbEventOperation.hpp:
added NdbError member to NdbEventOperation
ndb/include/ndbapi/ndberror.h:
added define for event error code
ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
changed name of error code
ndb/src/ndbapi/NdbEventOperation.cpp:
added NdbError
ndb/src/ndbapi/NdbEventOperationImpl.cpp:
added debug printout
added some error handling
ndb/src/ndbapi/NdbEventOperationImpl.hpp:
added NdbError
ndb/src/ndbapi/Ndberr.cpp:
added NdbError for NdbEventOperationImpl
ndb/src/ndbapi/ndberror.c:
changed some error codes
ndb/test/ndbapi/test_event.cpp:
added testcase for BUG#7627
ndb/test/src/HugoTransactions.cpp:
added printout in event
ndb/test/src/NDBT_Test.cpp:
added my_pthread_init to get dbug print correct
Diffstat (limited to 'ndb/src/ndbapi/Ndberr.cpp')
-rw-r--r-- | ndb/src/ndbapi/Ndberr.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/Ndberr.cpp b/ndb/src/ndbapi/Ndberr.cpp index 07f33d3e8b3..b05818de6f1 100644 --- a/ndb/src/ndbapi/Ndberr.cpp +++ b/ndb/src/ndbapi/Ndberr.cpp @@ -21,7 +21,7 @@ #include <NdbOperation.hpp> #include <NdbTransaction.hpp> #include <NdbBlob.hpp> - +#include "NdbEventOperationImpl.hpp" static void update(const NdbError & _err){ @@ -73,3 +73,10 @@ NdbBlob::getNdbError() const { update(theError); return theError; } + +const +NdbError & +NdbEventOperationImpl::getNdbError() const { + update(m_error); + return m_error; +} |