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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3e9866e7
Commit
3e9866e7
authored
May 25, 2004
by
magnus@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These test program also uses old way to create tables, thus requires NdbSchemaCon.hpp
parent
80837e0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
ndb/test/ndbapi/flexHammer/flexHammer.cpp
ndb/test/ndbapi/flexHammer/flexHammer.cpp
+8
-7
ndb/test/ndbapi/flexTT/flexTT.cpp
ndb/test/ndbapi/flexTT/flexTT.cpp
+3
-2
ndb/test/src/NDBT_ResultRow.cpp
ndb/test/src/NDBT_ResultRow.cpp
+1
-1
No files found.
ndb/test/ndbapi/flexHammer/flexHammer.cpp
View file @
3e9866e7
...
...
@@ -58,6 +58,7 @@ Revision history:
#include <NdbTick.h>
#include <NdbTest.hpp>
#include <NDBT_Error.hpp>
#include <NdbSchemaCon.hpp>
ErrorData
*
flexHammerErrorData
;
...
...
@@ -754,7 +755,7 @@ createTables(Ndb* pMyNdb)
}
// if
ndbout
<<
endl
;
MySchemaTransaction
=
pMyNdb
->
startSchemaTransaction
(
);
MySchemaTransaction
=
NdbSchemaCon
::
startSchemaTrans
(
pMyNdb
);
if
(
MySchemaTransaction
==
NULL
)
{
return
(
-
1
);
}
// if
...
...
@@ -762,7 +763,7 @@ createTables(Ndb* pMyNdb)
MySchemaOp
=
MySchemaTransaction
->
getNdbSchemaOp
();
if
(
MySchemaOp
==
NULL
)
{
// Clean up opened schema transaction
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
return
(
-
1
);
}
// if
...
...
@@ -787,7 +788,7 @@ createTables(Ndb* pMyNdb)
#endif
if
(
check
==
-
1
)
{
// Clean up opened schema transaction
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
return
(
-
1
);
}
// if
...
...
@@ -798,7 +799,7 @@ createTables(Ndb* pMyNdb)
NotNullAttribute
);
if
(
check
==
-
1
)
{
// Clean up opened schema transaction
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
return
(
-
1
);
}
// if
...
...
@@ -810,7 +811,7 @@ createTables(Ndb* pMyNdb)
NotNullAttribute
);
if
(
check
==
-
1
)
{
// Clean up opened schema transaction
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
return
(
-
1
);
}
// if
}
// for
...
...
@@ -819,11 +820,11 @@ createTables(Ndb* pMyNdb)
check
=
MySchemaTransaction
->
execute
();
if
(
check
==
-
1
)
{
// Clean up opened schema transaction
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
return
(
-
1
);
}
// if
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
}
// for
}
// if
...
...
ndb/test/ndbapi/flexTT/flexTT.cpp
View file @
3e9866e7
...
...
@@ -18,6 +18,7 @@
#include <ndb_global.h>
#include <NdbApi.hpp>
#include <NdbSchemaCon.hpp>
#include <NdbMain.h>
#include <md5_hash.hpp>
...
...
@@ -662,7 +663,7 @@ createTables(Ndb* pMyNdb){
if
(
theTableCreateFlag
==
0
)
{
ndbout
<<
"Creating Table: vpn_users "
<<
"..."
<<
endl
;
MySchemaTransaction
=
pMyNdb
->
startSchemaTransaction
(
);
MySchemaTransaction
=
NdbSchemaCon
::
startSchemaTrans
(
pMyNdb
);
if
(
MySchemaTransaction
==
NULL
&&
(
!
error_handler
(
MySchemaTransaction
->
getNdbError
())))
...
...
@@ -748,7 +749,7 @@ createTables(Ndb* pMyNdb){
(
!
error_handler
(
MySchemaTransaction
->
getNdbError
())))
return
-
1
;
pMyNdb
->
closeSchemaTransaction
(
MySchemaTransaction
);
NdbSchemaCon
::
closeSchemaTrans
(
MySchemaTransaction
);
}
//if
return
0
;
...
...
ndb/test/src/NDBT_ResultRow.cpp
View file @
3e9866e7
...
...
@@ -112,7 +112,7 @@ BaseString NDBT_ResultRow::c_str() {
/**
* TODO This
could chare the san
me printer function as in
* TODO This
should share the sa
me printer function as in
* NdbEventOperationImpl.cpp, using new types of course :)
*/
...
...
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