24 #include "VerifyNdbApi.hpp"
27 NdbMutex* g_pNdbMutexVerify = 0;
30 void VerifyBegin(
void)
32 if(!g_pNdbMutexVerify)
34 g_pNdbMutexVerify = NdbMutex_Create();
36 NdbMutex_Lock(g_pNdbMutexVerify);
41 NdbMutex_Unlock(g_pNdbMutexVerify);
46 void CVerifyNdbSchemaOp::VerifyIntError(
const int i,
const char* szMethod)
49 ndbout <<
"NdbSchemaOp::" << szMethod <<
" returned " << dec <<
i;
50 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
55 void CVerifyNdbSchemaCon::VerifyIntError(
const int i,
const char* szMethod)
58 ndbout <<
"NdbSchemaCon::" << szMethod <<
" returned " << dec <<
i;
59 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
64 void CVerifyNdbSchemaCon::VerifyPtrError(
void* p,
const char* szMethod)
67 ndbout <<
"NdbSchemaCon::" << szMethod <<
" returned " << hex << (Uint32)p;
68 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
73 void CVerifyNdbRecAttr::VerifyValueError(
const int iNull,
const char* szMethod)
76 ndbout <<
"NdbRecAttr::" << szMethod <<
" : isNULL() returned " << dec << iNull;
82 void CVerifyNdbOperation::VerifyIntError(
const int i,
const char* szMethod)
85 ndbout <<
"NdbOperation::" << szMethod <<
" returned " << dec <<
i;
86 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
91 void CVerifyNdbOperation::VerifyPtrError(
void* p,
const char* szMethod)
94 ndbout <<
"NdbOperation::" << szMethod <<
" returned " << hex << (Uint32)p;
95 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
100 void CVerifyNdbIndexOperation::VerifyIntError(
const int i,
const char* szMethod)
103 ndbout <<
"NdbIndexOperation::" << szMethod <<
" returned " << dec <<
i;
104 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
109 void CVerifyNdbIndexOperation::VerifyPtrError(
void* p,
const char* szMethod)
112 ndbout <<
"NdbIndexOperation::" << szMethod <<
" returned " << hex << (Uint32)p;
113 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
118 void CVerifyNdbConnection::VerifyIntError(
const int i,
const char* szMethod)
121 ndbout <<
"NdbConnection::" << szMethod <<
" returned " << dec <<
i;
122 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
127 void CVerifyNdbConnection::VerifyPtrError(
void* p,
const char* szMethod)
130 ndbout <<
"NdbConnection::" << szMethod <<
" returned " << hex << (Uint32)p;
131 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
136 void CVerifyNdb::VerifyPtrError(
void* p,
const char* szMethod)
139 ndbout <<
"Ndb::" << szMethod <<
" returned " << hex << (Uint32)p;
140 ndbout <<
" : " << dec << getNdbError().code <<
" : " << getNdbError().message << endl;
145 void CVerifyNdb::VerifyVoidError(
const int iCode,
const char* szMethod)
148 ndbout <<
"Ndb::" << szMethod <<
" : getNdbError().code returned " << dec << iCode;
149 ndbout <<
" : " << getNdbError().message << endl;