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
790fbc56
Commit
790fbc56
authored
Feb 09, 2009
by
Guilhem Bichot
Browse files
Options
Browse Files
Download
Plain Diff
merge with latest 5.1-maria
parents
f0261aca
1cd1ae6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+1
-1
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+1
-1
storage/maria/ma_rt_index.c
storage/maria/ma_rt_index.c
+1
-1
storage/myisam/rt_index.c
storage/myisam/rt_index.c
+2
-1
No files found.
mysql-test/r/ctype_utf8.result
View file @
790fbc56
...
...
@@ -240,7 +240,7 @@ select hex(s1) from t1;
hex(s1)
41
drop table t1;
create table t1 (a text character set utf8, primary key(a(3
60
)));
create table t1 (a text character set utf8, primary key(a(3
71
)));
ERROR 42000: Specified key was too long; max key length is 1000 bytes
CREATE TABLE t1 ( a varchar(10) ) CHARACTER SET utf8;
INSERT INTO t1 VALUES ( 'test' );
...
...
mysql-test/t/ctype_utf8.test
View file @
790fbc56
...
...
@@ -164,7 +164,7 @@ drop table t1;
# UTF8 breaks primary keys for cols > 333 characters
#
--
error
1071
create
table
t1
(
a
text
character
set
utf8
,
primary
key
(
a
(
3
60
)));
create
table
t1
(
a
text
character
set
utf8
,
primary
key
(
a
(
3
71
)));
#
...
...
storage/maria/ma_rt_index.c
View file @
790fbc56
...
...
@@ -433,7 +433,7 @@ int maria_rtree_get_first(MARIA_HA *info, uint keynr, uint key_length)
info
->
maria_rtree_recursion_depth
=
-
1
;
info
->
keyread_buff_used
=
1
;
return
maria_rtree_get_req
(
info
,
&
keyinfo
[
keynr
]
,
key_length
,
root
,
0
);
return
maria_rtree_get_req
(
info
,
keyinfo
,
key_length
,
root
,
0
);
}
...
...
storage/myisam/rt_index.c
View file @
790fbc56
...
...
@@ -378,6 +378,7 @@ err1:
int
rtree_get_first
(
MI_INFO
*
info
,
uint
keynr
,
uint
key_length
)
{
my_off_t
root
;
MI_KEYDEF
*
keyinfo
=
info
->
s
->
keyinfo
+
keynr
;
if
((
root
=
info
->
s
->
state
.
key_root
[
keynr
])
==
HA_OFFSET_ERROR
)
{
...
...
@@ -388,7 +389,7 @@ int rtree_get_first(MI_INFO *info, uint keynr, uint key_length)
info
->
rtree_recursion_depth
=
-
1
;
info
->
buff_used
=
1
;
return
rtree_get_req
(
info
,
info
->
s
->
keyinfo
,
key_length
,
root
,
0
);
return
rtree_get_req
(
info
,
keyinfo
,
key_length
,
root
,
0
);
}
...
...
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