diff options
author | unknown <bar@mysql.com> | 2006-03-07 13:05:24 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2006-03-07 13:05:24 +0400 |
commit | 06691fc3c6a7310669c236f4c533ffeafee3a754 (patch) | |
tree | 20c7873bffe143edef4ab5cb510e91b327d00854 /mysql-test/r/upgrade.result | |
parent | 38ccc8c2c1fffe1445aed095dc16ae78fa058095 (diff) | |
download | mariadb-git-06691fc3c6a7310669c236f4c533ffeafee3a754.tar.gz |
Bug#17142 Crash if create with encoded name
upgrade.result, upgrade.test:
Adding test case.
table.cc:
Don't try to open a table with old-formatted name,
if the table name contains "@" character.
This is to avoid mixing two different names to each other.
Thanks Monty for suggesting this fix.
sql/table.cc:
Bug#17142 Crash if create with encoded name
Don't try to open a table with old-formatted name,
if the table name contains "@" character.
This is to avoid mixing two different names to each other.
mysql-test/t/upgrade.test:
Adding test case.
mysql-test/r/upgrade.result:
Adding test case.
Diffstat (limited to 'mysql-test/r/upgrade.result')
-rw-r--r-- | mysql-test/r/upgrade.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/upgrade.result b/mysql-test/r/upgrade.result index bd60b02cb6a..9d35314d0c6 100644 --- a/mysql-test/r/upgrade.result +++ b/mysql-test/r/upgrade.result @@ -41,3 +41,19 @@ t1 t-1 drop database `mysqltest1`; drop database `mysqltest-1`; +drop table if exists `txu@0023P@0023p1`; +drop table if exists `txu#P#p1`; +create table `txu#P#p1` (s1 int); +insert into `txu#P#p1` values (1); +select * from `txu@0023P@0023p1`; +ERROR 42S02: Table 'test.txu@0023P@0023p1' doesn't exist +create table `txu@0023P@0023p1` (s1 int); +insert into `txu@0023P@0023p1` values (2); +select * from `txu@0023P@0023p1`; +s1 +2 +select * from `txu#P#p1`; +s1 +1 +drop table `txu@0023P@0023p1`; +drop table `txu#P#p1`; |