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
cdd0b62a
Commit
cdd0b62a
authored
Feb 26, 2005
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/space/pekka/ndb/version/my50-ndb
parents
b9aa67bc
645f5733
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
7 deletions
+19
-7
ndb/include/ndb_constants.h
ndb/include/ndb_constants.h
+2
-2
ndb/include/ndbapi/NdbDictionary.hpp
ndb/include/ndbapi/NdbDictionary.hpp
+2
-2
ndb/include/util/NdbSqlUtil.hpp
ndb/include/util/NdbSqlUtil.hpp
+2
-2
ndb/src/common/util/NdbSqlUtil.cpp
ndb/src/common/util/NdbSqlUtil.cpp
+6
-0
ndb/src/ndbapi/NdbDictionaryImpl.cpp
ndb/src/ndbapi/NdbDictionaryImpl.cpp
+1
-1
ndb/src/ndbapi/NdbOperationInt.cpp
ndb/src/ndbapi/NdbOperationInt.cpp
+6
-0
No files found.
ndb/include/ndb_constants.h
View file @
cdd0b62a
...
...
@@ -58,8 +58,8 @@
#define NDB_TYPE_BLOB 20
#define NDB_TYPE_TEXT 21
#define NDB_TYPE_BIT 22
#define NDB_TYPE_LONG
_VARCHAR
23
#define NDB_TYPE_LONG
_VARBINARY
24
#define NDB_TYPE_LONG
VARCHAR
23
#define NDB_TYPE_LONG
VARBINARY
24
#define NDB_TYPE_TIME 25
#define NDB_TYPE_YEAR 26
#define NDB_TYPE_TIMESTAMP 27
...
...
ndb/include/ndbapi/NdbDictionary.hpp
View file @
cdd0b62a
...
...
@@ -197,8 +197,8 @@ public:
Blob
=
NDB_TYPE_BLOB
,
///< Binary large object (see NdbBlob)
Text
=
NDB_TYPE_TEXT
,
///< Text blob
Bit
=
NDB_TYPE_BIT
,
///< Bit, length specifies no of bits
Longvarchar
=
NDB_TYPE_LONG
_
VARCHAR
,
///< Length bytes: 2, little-endian
Longvarbinary
=
NDB_TYPE_LONG
_
VARBINARY
,
///< Length bytes: 2, little-endian
Longvarchar
=
NDB_TYPE_LONGVARCHAR
,
///< Length bytes: 2, little-endian
Longvarbinary
=
NDB_TYPE_LONGVARBINARY
,
///< Length bytes: 2, little-endian
Time
=
NDB_TYPE_TIME
,
///< Time without date
Year
=
NDB_TYPE_YEAR
,
///< Year 1901-2155 (1 byte)
Timestamp
=
NDB_TYPE_TIMESTAMP
///< Unix time
...
...
ndb/include/util/NdbSqlUtil.hpp
View file @
cdd0b62a
...
...
@@ -88,8 +88,8 @@ public:
Blob
=
NDB_TYPE_BLOB
,
Text
=
NDB_TYPE_TEXT
,
Bit
=
NDB_TYPE_BIT
,
Longvarchar
=
NDB_TYPE_LONG
_
VARCHAR
,
Longvarbinary
=
NDB_TYPE_LONG
_
VARBINARY
,
Longvarchar
=
NDB_TYPE_LONGVARCHAR
,
Longvarbinary
=
NDB_TYPE_LONGVARBINARY
,
Time
=
NDB_TYPE_TIME
,
Year
=
NDB_TYPE_YEAR
,
Timestamp
=
NDB_TYPE_TIMESTAMP
,
...
...
ndb/src/common/util/NdbSqlUtil.cpp
View file @
cdd0b62a
...
...
@@ -878,6 +878,8 @@ NdbSqlUtil::usable_in_pk(Uint32 typeId, const void* info)
const
Type
&
type
=
getType
(
typeId
);
switch
(
type
.
m_typeId
)
{
case
Type
:
:
Char
:
case
Type
:
:
Varchar
:
case
Type
:
:
Longvarchar
:
{
const
CHARSET_INFO
*
cs
=
(
const
CHARSET_INFO
*
)
info
;
return
...
...
@@ -891,6 +893,7 @@ NdbSqlUtil::usable_in_pk(Uint32 typeId, const void* info)
case
Type
:
:
Undefined
:
case
Type
:
:
Blob
:
case
Type
:
:
Text
:
case
Type
:
:
Bit
:
break
;
default:
return
true
;
...
...
@@ -912,6 +915,8 @@ NdbSqlUtil::usable_in_ordered_index(Uint32 typeId, const void* info)
return
false
;
switch
(
type
.
m_typeId
)
{
case
Type
:
:
Char
:
case
Type
:
:
Varchar
:
case
Type
:
:
Longvarchar
:
{
const
CHARSET_INFO
*
cs
=
(
const
CHARSET_INFO
*
)
info
;
return
...
...
@@ -926,6 +931,7 @@ NdbSqlUtil::usable_in_ordered_index(Uint32 typeId, const void* info)
case
Type
:
:
Undefined
:
case
Type
:
:
Blob
:
case
Type
:
:
Text
:
case
Type
:
:
Bit
:
// can be fixed
break
;
default:
return
true
;
...
...
ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
cdd0b62a
...
...
@@ -1647,7 +1647,7 @@ NdbDictInterface::createOrAlterTable(Ndb & ndb,
}
// primary key type check
if
(
col
->
m_pk
&&
!
NdbSqlUtil
::
usable_in_pk
(
col
->
m_type
,
col
->
m_cs
))
{
m_error
.
code
=
743
;
m_error
.
code
=
(
col
->
m_cs
!=
0
?
743
:
739
)
;
DBUG_RETURN
(
-
1
);
}
// distribution key not supported for Char attribute
...
...
ndb/src/ndbapi/NdbOperationInt.cpp
View file @
cdd0b62a
...
...
@@ -1047,6 +1047,12 @@ NdbOperation::branch_col(Uint32 type,
}
}
Uint32
tempData
[
2000
];
if
(((
UintPtr
)
val
&
3
)
!=
0
)
{
memcpy
(
tempData
,
val
,
len
);
val
=
tempData
;
}
if
(
insertATTRINFO
(
Interpreter
::
BranchCol
(
c
,
0
,
0
,
false
))
==
-
1
)
DBUG_RETURN
(
-
1
);
...
...
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