#At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-maria/ based on revid:serg@stripped
2729 Guilhem Bichot 2009-02-09 [merge]
merge with latest 5.1-maria
modified:
mysql-test/r/ctype_utf8.result
mysql-test/t/ctype_utf8.test
storage/maria/ma_rt_index.c
storage/myisam/rt_index.c
=== modified file 'mysql-test/r/ctype_utf8.result'
--- a/mysql-test/r/ctype_utf8.result 2008-11-21 13:32:45 +0000
+++ b/mysql-test/r/ctype_utf8.result 2009-01-26 21:19:13 +0000
@@ -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(360)));
+create table t1 (a text character set utf8, primary key(a(371)));
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' );
=== modified file 'mysql-test/t/ctype_utf8.test'
--- a/mysql-test/t/ctype_utf8.test 2008-11-21 13:32:45 +0000
+++ b/mysql-test/t/ctype_utf8.test 2009-01-26 21:19:13 +0000
@@ -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(360)));
+create table t1 (a text character set utf8, primary key(a(371)));
#
=== modified file 'storage/maria/ma_rt_index.c'
--- a/storage/maria/ma_rt_index.c 2008-06-26 05:18:28 +0000
+++ b/storage/maria/ma_rt_index.c 2009-01-26 21:14:43 +0000
@@ -433,7 +433,7 @@ int maria_rtree_get_first(MARIA_HA *info
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);
}
=== modified file 'storage/myisam/rt_index.c'
--- a/storage/myisam/rt_index.c 2008-10-10 15:28:41 +0000
+++ b/storage/myisam/rt_index.c 2009-01-26 21:14:43 +0000
@@ -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
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);
}
| Thread |
|---|
| • bzr commit into MySQL/Maria:mysql-maria branch (guilhem:2729) | Guilhem Bichot | 10 Feb |