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
6ede6e4f
Commit
6ede6e4f
authored
Feb 20, 2005
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NdbSqlUtil.cpp:
duplicate of previous cs to 5.0-ndb
parent
e1c2e85f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
ndb/src/common/util/NdbSqlUtil.cpp
ndb/src/common/util/NdbSqlUtil.cpp
+3
-12
No files found.
ndb/src/common/util/NdbSqlUtil.cpp
View file @
6ede6e4f
...
...
@@ -611,17 +611,8 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
return
0
;
}
#else
char
t1
[
4
],
t2
[
4
];
if
(
n1
==
3
&&
n2
==
3
)
{
memcpy
(
t1
,
p1
,
3
);
memcpy
(
t2
,
p2
,
3
);
p1
=
t1
;
p2
=
t2
;
n1
=
n2
=
4
;
}
#ifdef ndb_date_sol9x86_cc_xO3_madness
if
(
n2
>=
4
)
{
// may access 4-th byte
if
(
n2
>=
3
)
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
// from Field_newdate::val_int
...
...
@@ -636,7 +627,7 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
return
0
;
}
#else
if
(
n2
>=
4
)
{
if
(
n2
>=
3
)
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
uint
j1
=
uint3korr
(
v1
);
...
...
@@ -690,7 +681,7 @@ NdbSqlUtil::cmpText(const void* info, const void* p1, unsigned n1, const void* p
int
NdbSqlUtil
::
cmpTime
(
const
void
*
info
,
const
void
*
p1
,
unsigned
n1
,
const
void
*
p2
,
unsigned
n2
,
bool
full
)
{
if
(
n2
>=
4
)
{
// may access 4-th byte
if
(
n2
>=
3
)
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
// from Field_time::val_int
...
...
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