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
e3f3c6f0
Commit
e3f3c6f0
authored
Mar 26, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #26986 BIT(33) for ndb is broken on solaris.
- always store lsw first in ndb
parent
df4d3039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+9
-5
No files found.
sql/ha_ndbcluster.cc
View file @
e3f3c6f0
...
@@ -726,11 +726,8 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
...
@@ -726,11 +726,8 @@ int ha_ndbcluster::set_ndb_value(NdbOperation *ndb_op, Field *field,
DBUG_PRINT
(
"info"
,
(
"bit field"
));
DBUG_PRINT
(
"info"
,
(
"bit field"
));
DBUG_DUMP
(
"value"
,
(
char
*
)
&
bits
,
pack_len
);
DBUG_DUMP
(
"value"
,
(
char
*
)
&
bits
,
pack_len
);
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
if
(
pack_len
<
5
)
/* store lsw first */
{
bits
=
(
bits
>>
32
)
|
(
bits
<<
32
);
DBUG_RETURN
(
ndb_op
->
setValue
(
fieldnr
,
((
char
*
)
&
bits
)
+
4
,
pack_len
)
!=
0
);
}
#endif
#endif
DBUG_RETURN
(
ndb_op
->
setValue
(
fieldnr
,
(
char
*
)
&
bits
,
pack_len
)
!=
0
);
DBUG_RETURN
(
ndb_op
->
setValue
(
fieldnr
,
(
char
*
)
&
bits
,
pack_len
)
!=
0
);
}
}
...
@@ -2653,8 +2650,15 @@ void ha_ndbcluster::unpack_record(byte* buf)
...
@@ -2653,8 +2650,15 @@ void ha_ndbcluster::unpack_record(byte* buf)
DBUG_PRINT
(
"info"
,
(
"bit field H'%.8X%.8X"
,
DBUG_PRINT
(
"info"
,
(
"bit field H'%.8X%.8X"
,
*
(
Uint32
*
)(
*
value
).
rec
->
aRef
(),
*
(
Uint32
*
)(
*
value
).
rec
->
aRef
(),
*
((
Uint32
*
)(
*
value
).
rec
->
aRef
()
+
1
)));
*
((
Uint32
*
)(
*
value
).
rec
->
aRef
()
+
1
)));
#ifdef WORDS_BIGENDIAN
/* lsw is stored first */
Uint32
*
buf
=
(
Uint32
*
)(
*
value
).
rec
->
aRef
();
((
Field_bit
*
)
*
field
)
->
store
(
*
buf
|
(((
longlong
)
*
(
buf
+
1
))
<<
32
),
TRUE
);
#else
((
Field_bit
*
)
*
field
)
->
store
((
longlong
)
((
Field_bit
*
)
*
field
)
->
store
((
longlong
)
(
*
value
).
rec
->
u_64_value
(),
TRUE
);
(
*
value
).
rec
->
u_64_value
(),
TRUE
);
#endif
}
}
}
}
}
}
...
...
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