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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fe906b47
Commit
fe906b47
authored
Jan 08, 2005
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - wl-1442 4.1->5.0 merge fixes
parent
195f7bda
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
ndb/include/kernel/signaldata/DictTabInfo.hpp
ndb/include/kernel/signaldata/DictTabInfo.hpp
+0
-1
ndb/include/ndb_constants.h
ndb/include/ndb_constants.h
+7
-3
ndb/include/util/NdbSqlUtil.hpp
ndb/include/util/NdbSqlUtil.hpp
+1
-1
ndb/src/common/util/NdbSqlUtil.cpp
ndb/src/common/util/NdbSqlUtil.cpp
+6
-5
No files found.
ndb/include/kernel/signaldata/DictTabInfo.hpp
View file @
fe906b47
...
@@ -384,7 +384,6 @@ public:
...
@@ -384,7 +384,6 @@ public:
AttributeArraySize
=
(
NDB_BLOB_HEAD_SIZE
<<
2
)
+
(
AttributeExtPrecision
&
0xFFFF
);
AttributeArraySize
=
(
NDB_BLOB_HEAD_SIZE
<<
2
)
+
(
AttributeExtPrecision
&
0xFFFF
);
return
true
;
return
true
;
case
DictTabInfo
:
:
ExtTime
:
case
DictTabInfo
:
:
ExtTime
:
AttributeType
=
DictTabInfo
::
StringType
;
AttributeSize
=
DictTabInfo
::
an8Bit
;
AttributeSize
=
DictTabInfo
::
an8Bit
;
AttributeArraySize
=
3
*
AttributeExtLength
;
AttributeArraySize
=
3
*
AttributeExtLength
;
return
true
;
return
true
;
...
...
ndb/include/ndb_constants.h
View file @
fe906b47
...
@@ -53,12 +53,16 @@
...
@@ -53,12 +53,16 @@
#define NDB_TYPE_VARCHAR 15
#define NDB_TYPE_VARCHAR 15
#define NDB_TYPE_BINARY 16
#define NDB_TYPE_BINARY 16
#define NDB_TYPE_VARBINARY 17
#define NDB_TYPE_VARBINARY 17
#define NDB_TYPE_DATETIME 18
// need to fix
#define NDB_TYPE_DATETIME 18
#define NDB_TYPE_
TIMESPEC 19 // need to fix
#define NDB_TYPE_
DATE 19
#define NDB_TYPE_BLOB 20
#define NDB_TYPE_BLOB 20
#define NDB_TYPE_TEXT 21
#define NDB_TYPE_TEXT 21
#define NDB_TYPE_BIT 22
#define NDB_TYPE_BIT 22
#define NDB_TYPE_MAX 23
// fill in NDB_TYPE_LONGVAR* at next merge 5.0-ndb -> 5.0
#define NDB_TYPE_TIME 25
#define NDB_TYPE_MAX 26
#endif
#endif
ndb/include/util/NdbSqlUtil.hpp
View file @
fe906b47
...
@@ -83,7 +83,7 @@ public:
...
@@ -83,7 +83,7 @@ public:
Binary
=
NDB_TYPE_BINARY
,
Binary
=
NDB_TYPE_BINARY
,
Varbinary
=
NDB_TYPE_VARBINARY
,
Varbinary
=
NDB_TYPE_VARBINARY
,
Datetime
=
NDB_TYPE_DATETIME
,
Datetime
=
NDB_TYPE_DATETIME
,
Timespec
=
NDB_TYPE_TIMESPEC
,
Date
=
NDB_TYPE_DATE
,
Blob
=
NDB_TYPE_BLOB
,
Blob
=
NDB_TYPE_BLOB
,
Text
=
NDB_TYPE_TEXT
,
Text
=
NDB_TYPE_TEXT
,
Bit
=
NDB_TYPE_BIT
,
Bit
=
NDB_TYPE_BIT
,
...
...
ndb/src/common/util/NdbSqlUtil.cpp
View file @
fe906b47
...
@@ -449,6 +449,7 @@ NdbSqlUtil::cmpVarchar(const void* info, const void* p1, unsigned n1, const void
...
@@ -449,6 +449,7 @@ NdbSqlUtil::cmpVarchar(const void* info, const void* p1, unsigned n1, const void
return
0
;
return
0
;
}
}
int
NdbSqlUtil
::
cmpBinary
(
const
void
*
info
,
const
void
*
p1
,
unsigned
n1
,
const
void
*
p2
,
unsigned
n2
,
bool
full
)
NdbSqlUtil
::
cmpBinary
(
const
void
*
info
,
const
void
*
p1
,
unsigned
n1
,
const
void
*
p2
,
unsigned
n2
,
bool
full
)
{
{
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
...
@@ -505,7 +506,7 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
...
@@ -505,7 +506,7 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
return
0
;
return
0
;
}
}
assert
(
!
full
);
assert
(
!
full
);
return
c
mpUnknown
;
return
C
mpUnknown
;
#else
#else
if
(
n2
>=
4
)
{
// may access 4-th byte
if
(
n2
>=
4
)
{
// may access 4-th byte
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
...
@@ -522,7 +523,7 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
...
@@ -522,7 +523,7 @@ NdbSqlUtil::cmpDate(const void* info, const void* p1, unsigned n1, const void* p
return
0
;
return
0
;
}
}
assert
(
!
full
);
assert
(
!
full
);
return
c
mpUnknown
;
return
C
mpUnknown
;
#endif
#endif
}
}
...
@@ -543,14 +544,14 @@ NdbSqlUtil::cmpText(const void* info, const void* p1, unsigned n1, const void* p
...
@@ -543,14 +544,14 @@ NdbSqlUtil::cmpText(const void* info, const void* p1, unsigned n1, const void* p
}
}
int
int
NdbSqlUtil
::
cmpTime
(
const
void
*
info
,
const
Uint32
*
p1
,
const
Uint32
*
p2
,
Uint32
full
,
Uint32
size
)
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
>=
4
)
{
// may access 4-th byte
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v1
=
(
const
uchar
*
)
p1
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
const
uchar
*
v2
=
(
const
uchar
*
)
p2
;
// from Field_time::val_int
// from Field_time::val_int
Int32
j1
=
sint3korr
(
u1
.
v
);
Int32
j1
=
sint3korr
(
v1
);
Int32
j2
=
sint3korr
(
u2
.
v
);
Int32
j2
=
sint3korr
(
v2
);
if
(
j1
<
j2
)
if
(
j1
<
j2
)
return
-
1
;
return
-
1
;
if
(
j1
>
j2
)
if
(
j1
>
j2
)
...
...
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