1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

In innobase_format_name() we should call innobase_convert_name() with

"!is_index_name" instead of "is_index_name", so the table name in the
error message would not be formated as index name.
This commit is contained in:
Jimmy Yang
2011-08-17 02:39:55 -07:00
parent 7abcb1dd08
commit d9c3d35437
2 changed files with 4 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ select z from corrupt_bit_test_ā;
ERROR HY000: Incorrect key file for table 'corrupt_bit_test_ā'; try to repair it
show warnings;
Level Code Message
Warning 179 InnoDB: Index "idxē" for table "test/corrupt_bit_test_@1s" is marked as corrupted
Warning 179 InnoDB: Index "idxē" for table "test"."corrupt_bit_test_ā" is marked as corrupted
Error 1034 Incorrect key file for table 'corrupt_bit_test_ā'; try to repair it
insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001);
select * from corrupt_bit_test_ā use index(primary) where a = 10001;

View File

@@ -2096,7 +2096,9 @@ innobase_format_name(
const char* bufend;
bufend = innobase_convert_name(buf, buflen, name, strlen(name),
NULL, is_index_name);
NULL, !is_index_name);
ut_ad((ulint) (bufend - buf) < buflen);
buf[bufend - buf] = '\0';
}