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
8e88ed19
Commit
8e88ed19
authored
Jun 03, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for 840, invalid tuple size.
Still don't know reason, but this works
parent
0a69e028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ndb/src/ndbapi/NdbOperationDefine.cpp
ndb/src/ndbapi/NdbOperationDefine.cpp
+3
-2
No files found.
ndb/src/ndbapi/NdbOperationDefine.cpp
View file @
8e88ed19
...
...
@@ -528,9 +528,9 @@ NdbOperation::setValue( const NdbColumnImpl* tAttrInfo,
tAttrId
=
tAttrInfo
->
m_attrId
;
const
char
*
aValue
=
aValuePassed
;
Uint32
ahValue
;
AttributeHeader
&
ah
=
AttributeHeader
::
init
(
&
ahValue
,
tAttrId
,
0
);
if
(
aValue
==
NULL
)
{
if
(
tAttrInfo
->
m_nullable
)
{
AttributeHeader
&
ah
=
AttributeHeader
::
init
(
&
ahValue
,
tAttrId
,
0
);
ah
.
setNULL
();
insertATTRINFO
(
ahValue
);
// Insert Attribute Id with the value
...
...
@@ -564,7 +564,8 @@ NdbOperation::setValue( const NdbColumnImpl* tAttrInfo,
}
//if
const
Uint32
totalSizeInWords
=
(
sizeInBytes
+
3
)
/
4
;
// Including bits in last word
const
Uint32
sizeInWords
=
sizeInBytes
/
4
;
// Excluding bits in last word
ah
.
setDataSize
(
totalSizeInWords
);
AttributeHeader
&
ah
=
AttributeHeader
::
init
(
&
ahValue
,
tAttrId
,
totalSizeInWords
);
insertATTRINFO
(
ahValue
);
/***********************************************************************
...
...
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