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
44b4ec39
Commit
44b4ec39
authored
Apr 25, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
into perch.ndb.mysql.com:/home/jonas/src/51-jonas
parents
6be25e2d
76b666e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
storage/ndb/test/ndbapi/testDict.cpp
storage/ndb/test/ndbapi/testDict.cpp
+6
-6
No files found.
storage/ndb/test/ndbapi/testDict.cpp
View file @
44b4ec39
...
@@ -109,7 +109,7 @@ int runCreateTheTable(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -109,7 +109,7 @@ int runCreateTheTable(NDBT_Context* ctx, NDBT_Step* step){
const
NdbDictionary
::
Table
*
pTab
=
ctx
->
getTab
();
const
NdbDictionary
::
Table
*
pTab
=
ctx
->
getTab
();
// Try to create table in db
// Try to create table in db
if
(
pTab
->
createTableInDb
(
pNdb
)
!=
0
){
if
(
NDBT_Tables
::
createTable
(
pNdb
,
pTab
->
getName
()
)
!=
0
){
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
...
@@ -151,7 +151,7 @@ int runCreateTableWhenDbIsFull(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -151,7 +151,7 @@ int runCreateTableWhenDbIsFull(NDBT_Context* ctx, NDBT_Step* step){
}
}
// Try to create table in db
// Try to create table in db
if
(
pTab
->
createTableInDb
(
pNdb
)
==
0
){
if
(
NDBT_Tables
::
createTable
(
pNdb
,
pTab
->
getName
()
)
==
0
){
result
=
NDBT_FAILED
;
result
=
NDBT_FAILED
;
}
}
...
@@ -203,7 +203,7 @@ int runCreateAndDrop(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -203,7 +203,7 @@ int runCreateAndDrop(NDBT_Context* ctx, NDBT_Step* step){
ndbout
<<
i
<<
": "
;
ndbout
<<
i
<<
": "
;
// Try to create table in db
// Try to create table in db
if
(
pTab
->
createTableInDb
(
pNdb
)
!=
0
){
if
(
NDBT_Tables
::
createTable
(
pNdb
,
pTab
->
getName
()
)
!=
0
){
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
...
@@ -254,7 +254,8 @@ int runCreateAndDropWithData(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -254,7 +254,8 @@ int runCreateAndDropWithData(NDBT_Context* ctx, NDBT_Step* step){
while
(
i
<
loops
){
while
(
i
<
loops
){
ndbout
<<
i
<<
": "
;
ndbout
<<
i
<<
": "
;
// Try to create table in db
// Try to create table in db
if
(
pTab
->
createTableInDb
(
pNdb
)
!=
0
){
if
(
NDBT_Tables
::
createTable
(
pNdb
,
pTab
->
getName
())
!=
0
){
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
...
@@ -336,7 +337,7 @@ int runCreateAndDropDuring(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -336,7 +337,7 @@ int runCreateAndDropDuring(NDBT_Context* ctx, NDBT_Step* step){
Ndb
*
pNdb
=
GETNDB
(
step
);
Ndb
*
pNdb
=
GETNDB
(
step
);
g_debug
<<
"Creating table"
<<
endl
;
g_debug
<<
"Creating table"
<<
endl
;
if
(
pTab
->
createTableInDb
(
pNdb
)
!=
0
){
if
(
NDBT_Tables
::
createTable
(
pNdb
,
pTab
->
getName
()
)
!=
0
){
g_err
<<
"createTableInDb failed"
<<
endl
;
g_err
<<
"createTableInDb failed"
<<
endl
;
result
=
NDBT_FAILED
;
result
=
NDBT_FAILED
;
continue
;
continue
;
...
@@ -357,7 +358,6 @@ int runCreateAndDropDuring(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -357,7 +358,6 @@ int runCreateAndDropDuring(NDBT_Context* ctx, NDBT_Step* step){
g_debug
<<
"Dropping table"
<<
endl
;
g_debug
<<
"Dropping table"
<<
endl
;
if
(
pNdb
->
getDictionary
()
->
dropTable
(
pTab2
->
getName
())
!=
0
){
if
(
pNdb
->
getDictionary
()
->
dropTable
(
pTab2
->
getName
())
!=
0
){
g_err
<<
"Failed to drop "
<<
pTab2
->
getName
()
<<
" in db"
<<
endl
;
g_err
<<
"Failed to drop "
<<
pTab2
->
getName
()
<<
" in db"
<<
endl
;
result
=
NDBT_FAILED
;
result
=
NDBT_FAILED
;
...
...
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