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
9aa06f3b
Commit
9aa06f3b
authored
Feb 07, 2006
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#15918 fix
parent
fb0d37bc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
1 deletion
+29
-1
mysql-test/r/ndb_index_unique.result
mysql-test/r/ndb_index_unique.result
+9
-0
mysql-test/t/ndb_index_unique.test
mysql-test/t/ndb_index_unique.test
+14
-0
ndb/src/kernel/blocks/dbacc/Dbacc.hpp
ndb/src/kernel/blocks/dbacc/Dbacc.hpp
+1
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-0
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+1
-0
No files found.
mysql-test/r/ndb_index_unique.result
View file @
9aa06f3b
...
@@ -626,3 +626,12 @@ select * from t1 where code = '12' and month = 4 and year = 2004 ;
...
@@ -626,3 +626,12 @@ select * from t1 where code = '12' and month = 4 and year = 2004 ;
id month year code
id month year code
1 4 2004 12
1 4 2004 12
drop table t1;
drop table t1;
create table t1 (a int primary key, b varchar(1000) not null, unique key (b))
engine=ndb charset=utf8;
insert into t1 values (1, repeat(_utf8 0xe288ab6474, 200));
insert into t1 values (2, repeat(_utf8 0xe288ab6474, 200));
ERROR 23000: Duplicate entry '2' for key 1
select a, sha1(b) from t1;
a sha1(b)
1 08f5d02c8b8bc244f275bdfc22c42c5cab0d9d7d
drop table t1;
mysql-test/t/ndb_index_unique.test
View file @
9aa06f3b
...
@@ -309,4 +309,18 @@ select * from t1 where code = '12' and month = 4 and year = 2004 ;
...
@@ -309,4 +309,18 @@ select * from t1 where code = '12' and month = 4 and year = 2004 ;
drop
table
t1
;
drop
table
t1
;
# bug#15918 Unique Key Limit in NDB Engine
create
table
t1
(
a
int
primary
key
,
b
varchar
(
1000
)
not
null
,
unique
key
(
b
))
engine
=
ndb
charset
=
utf8
;
insert
into
t1
values
(
1
,
repeat
(
_utf8
0xe288ab6474
,
200
));
--
error
1062
insert
into
t1
values
(
2
,
repeat
(
_utf8
0xe288ab6474
,
200
));
select
a
,
sha1
(
b
)
from
t1
;
# perl -e 'print pack("H2000","e288ab6474"x200)' | sha1sum
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
ndb/src/kernel/blocks/dbacc/Dbacc.hpp
View file @
9aa06f3b
...
@@ -1446,7 +1446,7 @@ private:
...
@@ -1446,7 +1446,7 @@ private:
Uint32
cexcPrevforward
;
Uint32
cexcPrevforward
;
Uint32
clocalkey
[
32
];
Uint32
clocalkey
[
32
];
union
{
union
{
Uint32
ckeys
[
2048
];
Uint32
ckeys
[
2048
*
MAX_XFRM_MULTIPLY
];
Uint64
ckeys_align
;
Uint64
ckeys_align
;
};
};
...
...
sql/ha_ndbcluster.cc
View file @
9aa06f3b
...
@@ -5083,6 +5083,10 @@ uint ha_ndbcluster::max_supported_key_length() const
...
@@ -5083,6 +5083,10 @@ uint ha_ndbcluster::max_supported_key_length() const
{
{
return
NDB_MAX_KEY_SIZE
;
return
NDB_MAX_KEY_SIZE
;
}
}
uint
ha_ndbcluster
::
max_supported_key_part_length
()
const
{
return
NDB_MAX_KEY_SIZE
;
}
bool
ha_ndbcluster
::
low_byte_first
()
const
bool
ha_ndbcluster
::
low_byte_first
()
const
{
{
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
...
...
sql/ha_ndbcluster.h
View file @
9aa06f3b
...
@@ -510,6 +510,7 @@ class ha_ndbcluster: public handler
...
@@ -510,6 +510,7 @@ class ha_ndbcluster: public handler
uint
max_supported_keys
()
const
;
uint
max_supported_keys
()
const
;
uint
max_supported_key_parts
()
const
;
uint
max_supported_key_parts
()
const
;
uint
max_supported_key_length
()
const
;
uint
max_supported_key_length
()
const
;
uint
max_supported_key_part_length
()
const
;
int
rename_table
(
const
char
*
from
,
const
char
*
to
);
int
rename_table
(
const
char
*
from
,
const
char
*
to
);
int
delete_table
(
const
char
*
name
);
int
delete_table
(
const
char
*
name
);
...
...
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