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
41c1a6c6
Commit
41c1a6c6
authored
Jan 16, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/home/jonas/src/mysql-5.0-ndb
parents
2acfc2b9
93e17bb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
ndb/test/src/HugoCalculator.cpp
ndb/test/src/HugoCalculator.cpp
+2
-3
ndb/test/src/HugoOperations.cpp
ndb/test/src/HugoOperations.cpp
+5
-1
No files found.
ndb/test/src/HugoCalculator.cpp
View file @
41c1a6c6
...
...
@@ -98,7 +98,7 @@ HugoCalculator::calcValue(int record,
if
(
attr
->
getPrimaryKey
())
{
srand
(
record
+
attrib
+
updates
);
srand
(
record
+
attrib
);
val
=
(
record
+
attrib
);
}
else
...
...
@@ -198,12 +198,11 @@ HugoCalculator::verifyRowValues(NDBT_ResultRow* const pRow) const{
}
}
else
{
if
(
memcmp
(
res
,
pRow
->
attributeStore
(
i
)
->
aRef
(),
len
)
!=
0
){
// if (memcmp(res, pRow->attributeStore(i)->aRef(), pRow->attributeStore(i)->getLength()) != 0){
g_err
<<
"Column: "
<<
attr
->
getName
()
<<
endl
;
const
char
*
buf2
=
pRow
->
attributeStore
(
i
)
->
aRef
();
for
(
Uint32
j
=
0
;
j
<
len
;
j
++
)
{
g_err
<<
j
<<
":"
<<
hex
<<
(
int
)
buf
[
j
]
<<
"["
<<
hex
<<
(
int
)
buf2
[
j
]
<<
"]"
;
g_err
<<
j
<<
":"
<<
hex
<<
(
Uint32
)(
Uint8
)
buf
[
j
]
<<
"["
<<
hex
<<
(
Uint32
)(
Uint8
)
buf2
[
j
]
<<
"]"
;
if
(
buf
[
j
]
!=
buf2
[
j
])
{
g_err
<<
"==>Match failed!"
;
...
...
ndb/test/src/HugoOperations.cpp
View file @
41c1a6c6
...
...
@@ -177,7 +177,11 @@ HugoOperations::setValues(NdbOperation* pOp, int rowId, int updateId)
ERR
(
pTrans
->
getNdbError
());
return
NDBT_FAILED
;
}
}
else
{
}
}
for
(
a
=
0
;
a
<
tab
.
getNoOfColumns
();
a
++
){
if
(
tab
.
getColumn
(
a
)
->
getPrimaryKey
()
==
false
){
if
(
setValueForAttr
(
pOp
,
a
,
rowId
,
updateId
)
!=
0
){
ERR
(
pTrans
->
getNdbError
());
return
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