Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
408d069e
Commit
408d069e
authored
Jun 09, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
66ef0f14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
ndb/test/ndbapi/testNdbApi.cpp
ndb/test/ndbapi/testNdbApi.cpp
+7
-8
No files found.
ndb/test/ndbapi/testNdbApi.cpp
View file @
408d069e
...
@@ -1274,7 +1274,7 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -1274,7 +1274,7 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
const
Uint32
max
=
5
;
const
Uint32
max
=
5
;
const
NdbDictionary
::
Table
*
pTab
=
ctx
->
getTab
();
const
NdbDictionary
::
Table
*
pTab
=
ctx
->
getTab
();
Ndb
*
pNdb
=
new
Ndb
(
"TEST_DB"
);
Ndb
*
pNdb
=
new
Ndb
(
&
ctx
->
m_cluster_connection
,
"TEST_DB"
);
if
(
pNdb
==
NULL
){
if
(
pNdb
==
NULL
){
ndbout
<<
"pNdb == NULL"
<<
endl
;
ndbout
<<
"pNdb == NULL"
<<
endl
;
return
NDBT_FAILED
;
return
NDBT_FAILED
;
...
@@ -1293,7 +1293,7 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -1293,7 +1293,7 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
}
}
Uint32
i
;
Uint32
i
;
Vector
<
Ndb
ResultSet
*>
scans
;
Vector
<
Ndb
ScanOperation
*>
scans
;
for
(
i
=
0
;
i
<
10
*
max
;
i
++
)
for
(
i
=
0
;
i
<
10
*
max
;
i
++
)
{
{
NdbScanOperation
*
pOp
=
pCon
->
getNdbScanOperation
(
pTab
->
getName
());
NdbScanOperation
*
pOp
=
pCon
->
getNdbScanOperation
(
pTab
->
getName
());
...
@@ -1304,14 +1304,13 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -1304,14 +1304,13 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
NdbResultSet
*
rs
;
if
(
pOp
->
readTuples
()
!=
0
){
if
((
rs
=
pOp
->
readTuples
())
==
0
){
pNdb
->
closeTransaction
(
pCon
);
pNdb
->
closeTransaction
(
pCon
);
ERR
(
pOp
->
getNdbError
());
ERR
(
pOp
->
getNdbError
());
delete
pNdb
;
delete
pNdb
;
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
scans
.
push_back
(
rs
);
scans
.
push_back
(
pOp
);
}
}
// Dont' call any equal or setValues
// Dont' call any equal or setValues
...
@@ -1326,11 +1325,11 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -1326,11 +1325,11 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
for
(
i
=
0
;
i
<
scans
.
size
();
i
++
)
for
(
i
=
0
;
i
<
scans
.
size
();
i
++
)
{
{
Ndb
ResultSet
*
pOp
=
scans
[
i
];
Ndb
ScanOperation
*
pOp
=
scans
[
i
];
while
((
check
=
pOp
->
nextResult
())
==
0
);
while
((
check
=
pOp
->
nextResult
())
==
0
);
if
(
check
!=
1
)
if
(
check
!=
1
)
{
{
ERR
(
pOp
->
get
Operation
()
->
get
NdbError
());
ERR
(
pOp
->
getNdbError
());
pNdb
->
closeTransaction
(
pCon
);
pNdb
->
closeTransaction
(
pCon
);
delete
pNdb
;
delete
pNdb
;
return
NDBT_FAILED
;
return
NDBT_FAILED
;
...
@@ -1364,7 +1363,7 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -1364,7 +1363,7 @@ int runScan_4006(NDBT_Context* ctx, NDBT_Step* step){
return
result
;
return
result
;
}
}
template
class
Vector
<
Ndb
ResultSet
*
>;
template
class
Vector
<
Ndb
ScanOperation
*
>;
NDBT_TESTSUITE
(
testNdbApi
);
NDBT_TESTSUITE
(
testNdbApi
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment