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
cd5f9b2f
Commit
cd5f9b2f
authored
Jan 23, 2007
by
tomas@poseidon.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.mysql.com:/home/tomas/mysql-5.0-ndb
into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
6fae8d41
12911bb5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
13 deletions
+50
-13
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+15
-0
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+17
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+16
-10
storage/ndb/src/common/debugger/EventLogger.cpp
storage/ndb/src/common/debugger/EventLogger.cpp
+2
-1
storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp
storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp
+0
-1
storage/ndb/src/ndbapi/ndberror.c
storage/ndb/src/ndbapi/ndberror.c
+0
-1
No files found.
mysql-test/r/ndb_basic.result
View file @
cd5f9b2f
...
...
@@ -749,6 +749,21 @@ f1 f2 f3
222222 bbbbbb 2
drop table t1;
Illegal ndb error code: 1186
CREATE TABLE t1 (
a VARBINARY(40) NOT NULL,
b VARCHAR (256) CHARACTER SET UTF8 NOT NULL,
c VARCHAR(256) CHARACTER SET UTF8 NOT NULL,
PRIMARY KEY (b,c)) ENGINE=ndbcluster;
INSERT INTO t1 VALUES
("a","ab","abc"),("b","abc","abcd"),("c","abc","ab"),("d","ab","ab"),("e","abc","abc");
SELECT * FROM t1 ORDER BY a;
a b c
a ab abc
b abc abcd
c abc ab
d ab ab
e abc abc
DROP TABLE t1;
End of 5.0 tests
CREATE TABLE t1 (a VARCHAR(255) NOT NULL,
CONSTRAINT pk_a PRIMARY KEY (a))engine=ndb;
...
...
mysql-test/t/ndb_basic.test
View file @
cd5f9b2f
...
...
@@ -722,8 +722,25 @@ drop table t1;
--
error
1
--
exec
$MY_PERROR
--
ndb
1186
2
>&
1
#
# Bug #25746 - VARCHAR UTF8 PK issue
# - prior to bugfix 4209, illegal length parameter would be
# returned in SELECT *
CREATE
TABLE
t1
(
a
VARBINARY
(
40
)
NOT
NULL
,
b
VARCHAR
(
256
)
CHARACTER
SET
UTF8
NOT
NULL
,
c
VARCHAR
(
256
)
CHARACTER
SET
UTF8
NOT
NULL
,
PRIMARY
KEY
(
b
,
c
))
ENGINE
=
ndbcluster
;
INSERT
INTO
t1
VALUES
(
"a"
,
"ab"
,
"abc"
),(
"b"
,
"abc"
,
"abcd"
),(
"c"
,
"abc"
,
"ab"
),(
"d"
,
"ab"
,
"ab"
),(
"e"
,
"abc"
,
"abc"
);
SELECT
*
FROM
t1
ORDER
BY
a
;
DROP
TABLE
t1
;
# End of 5.0 tests
--
echo
End
of
5.0
tests
#
# Bug #18483 Cannot create table with FK constraint
# ndb does not support foreign key constraint, it is silently ignored
...
...
sql/ha_ndbcluster.cc
View file @
cd5f9b2f
...
...
@@ -3701,20 +3701,26 @@ void ha_ndbcluster::position(const byte *record)
size_t
len
=
key_part
->
length
;
const
byte
*
ptr
=
record
+
key_part
->
offset
;
Field
*
field
=
key_part
->
field
;
if
((
field
->
type
()
==
MYSQL_TYPE_VARCHAR
)
&&
((
Field_varstring
*
)
field
)
->
length_bytes
==
1
)
if
(
field
->
type
()
==
MYSQL_TYPE_VARCHAR
)
{
/**
* Keys always use 2 bytes length
*/
buff
[
0
]
=
ptr
[
0
];
buff
[
1
]
=
0
;
memcpy
(
buff
+
2
,
ptr
+
1
,
len
);
len
+=
2
;
if
(((
Field_varstring
*
)
field
)
->
length_bytes
==
1
)
{
/**
* Keys always use 2 bytes length
*/
buff
[
0
]
=
ptr
[
0
];
buff
[
1
]
=
0
;
memcpy
(
buff
+
2
,
ptr
+
1
,
len
);
}
else
{
memcpy
(
buff
,
ptr
,
len
+
2
);
}
len
+=
2
;
}
else
{
memcpy
(
buff
,
ptr
,
len
);
memcpy
(
buff
,
ptr
,
len
);
}
buff
+=
len
;
}
...
...
storage/ndb/src/common/debugger/EventLogger.cpp
View file @
cd5f9b2f
...
...
@@ -114,7 +114,8 @@ void getTextNDBStopForced(QQQQ) {
int
sphase
=
theData
[
4
];
int
extra
=
theData
[
5
];
getRestartAction
(
theData
[
1
],
action_str
);
reason_str
.
appfmt
(
" Initiated by signal %d."
,
signum
);
if
(
signum
)
reason_str
.
appfmt
(
" Initiated by signal %d."
,
signum
);
if
(
error
)
{
ndbd_exit_classification
cl
;
...
...
storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp
View file @
cd5f9b2f
...
...
@@ -138,7 +138,6 @@
#define ZNOT_FOUND 626
#define ZALREADYEXIST 630
#define ZINCONSISTENTHASHINDEX 892
#define ZNOTUNIQUE 893
#define ZINVALID_KEY 290
...
...
storage/ndb/src/ndbapi/ndberror.c
View file @
cd5f9b2f
...
...
@@ -229,7 +229,6 @@ ErrorBundle ErrorCodes[] = {
/**
* Internal errors
*/
{
892
,
DMEC
,
IE
,
"Inconsistent hash index. The index needs to be dropped and recreated"
},
{
896
,
DMEC
,
IE
,
"Tuple corrupted - wrong checksum or column data in invalid format"
},
{
901
,
DMEC
,
IE
,
"Inconsistent ordered index. The index needs to be dropped and recreated"
},
{
202
,
DMEC
,
IE
,
"202"
},
...
...
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