From b9512a55aa2ff17559886447a4b372179002568f Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Mon, 26 Jul 2004 10:52:40 +0200 Subject: BUG#4717 - check for valid table names in ALTER TABLE ... RENAME --- mysql-test/t/alter_table.test | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mysql-test/t/alter_table.test') diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test index 9a29ab3c2d7..11290134a71 100644 --- a/mysql-test/t/alter_table.test +++ b/mysql-test/t/alter_table.test @@ -243,3 +243,14 @@ LOCK TABLES t1 WRITE; ALTER TABLE t1 DISABLE KEYS; SHOW INDEX FROM t1; DROP TABLE t1; + +# +# BUG#4717 - check for valid table names +# +create table t1 (a int); +--error 1103 +alter table t1 rename to `t1\\`; +--error 1103 +rename table t1 to `t1\\`; +drop table t1; + -- cgit v1.2.1