mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
BUG#21033 The error log of mysqld shows useless information, and hides the real error.
This commit is contained in:
parent
fbcba85129
commit
03b590d3b7
1 changed files with 7 additions and 0 deletions
|
@ -980,6 +980,8 @@ Ndb::opTupleIdOnNdb(Ndb_local_table_info* info, Uint64 & opValue, Uint32 op)
|
|||
Uint64 tValue;
|
||||
NdbRecAttr* tRecAttrResult;
|
||||
|
||||
NdbError savedError;
|
||||
|
||||
CHECK_STATUS_MACRO_ZERO;
|
||||
|
||||
BaseString currentDb(getDatabaseName());
|
||||
|
@ -1074,7 +1076,12 @@ Ndb::opTupleIdOnNdb(Ndb_local_table_info* info, Uint64 & opValue, Uint32 op)
|
|||
|
||||
error_handler:
|
||||
theError.code = tConnection->theError.code;
|
||||
|
||||
savedError = theError;
|
||||
|
||||
this->closeTransaction(tConnection);
|
||||
theError = savedError;
|
||||
|
||||
error_return:
|
||||
// Restore current name space
|
||||
setDatabaseName(currentDb.c_str());
|
||||
|
|
Loading…
Reference in a new issue