Loading include/m_ctype.h +1 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,7 @@ extern CHARSET_INFO my_charset_ujis_bin; extern CHARSET_INFO my_charset_utf8_general_ci; extern CHARSET_INFO my_charset_utf8_bin; extern CHARSET_INFO my_charset_cp1250_czech_ci; extern CHARSET_INFO my_charset_filename; /* declarations for simple charsets */ extern int my_strnxfrm_simple(CHARSET_INFO *, uchar *, uint, const uchar *, Loading include/my_sys.h +2 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,8 @@ extern int NEAR my_errno; /* Last error in mysys */ #define MY_RETURN_REAL_PATH 32 /* return full path for file */ #define MY_SAFE_PATH 64 /* Return NULL if too long path */ #define MY_RELATIVE_PATH 128 /* name is relative to 'dir' */ #define MY_APPEND_EXT 256 /* add 'ext' as additional extension*/ /* My seek flags */ #define MY_SEEK_SET 0 Loading mysql-test/r/alter_table.result +4 −4 Original line number Diff line number Diff line Loading @@ -373,10 +373,10 @@ t1 0 PRIMARY 2 User A 0 NULL NULL BTREE t1 1 Host 1 Host A NULL NULL NULL BTREE disabled DROP TABLE t1; create table t1 (a int); alter table t1 rename to `t1\\`; ERROR 42000: Incorrect table name 't1\\' rename table t1 to `t1\\`; ERROR 42000: Incorrect table name 't1\\' alter table t1 rename to ``; ERROR 42000: Incorrect table name '' rename table t1 to ``; ERROR 42000: Incorrect table name '' drop table t1; drop table if exists t1, t2; Warnings: Loading mysql-test/r/create.result +8 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,14 @@ ERROR 42000: Incorrect table definition; there can be only one auto column and i create table not_existing_database.test (a int); ERROR 42000: Unknown database 'not_existing_database' create table `a/a` (a int); ERROR 42000: Incorrect table name 'a/a' show create table `a/a`; Table Create Table a/a CREATE TABLE `a/a` ( `a` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 create table t1 like `a/a`; drop table `a/a`; drop table `t1`; create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int); ERROR 42000: Incorrect table name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int); Loading Loading @@ -360,8 +367,6 @@ create table t3 like non_existing_table; ERROR 42S02: Unknown table 'non_existing_table' create temporary table t3 like t1; ERROR 42S01: Table 't3' already exists create table t3 like `a/a`; ERROR 42000: Incorrect table name 'a/a' drop table t1, t2, t3; drop table t3; drop database mysqltest; Loading mysql-test/r/mysqldump.result +1 −1 Original line number Diff line number Diff line Loading @@ -1627,7 +1627,7 @@ mysqldump: Couldn't find table: "T_" test_sequence ------ Testing with illegal database names ------ mysqldump: Got error: 1049: Unknown database 'mysqldump_test_d' when selecting the database mysqldump: Got error: 1102: Incorrect database name 'mysqld\ump_test_db' when selecting the database mysqldump: Got error: 1049: Unknown database 'mysqld\ump_test_db' when selecting the database drop table t1, t2, t3; drop database mysqldump_test_db; use test; Loading Loading
include/m_ctype.h +1 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,7 @@ extern CHARSET_INFO my_charset_ujis_bin; extern CHARSET_INFO my_charset_utf8_general_ci; extern CHARSET_INFO my_charset_utf8_bin; extern CHARSET_INFO my_charset_cp1250_czech_ci; extern CHARSET_INFO my_charset_filename; /* declarations for simple charsets */ extern int my_strnxfrm_simple(CHARSET_INFO *, uchar *, uint, const uchar *, Loading
include/my_sys.h +2 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,8 @@ extern int NEAR my_errno; /* Last error in mysys */ #define MY_RETURN_REAL_PATH 32 /* return full path for file */ #define MY_SAFE_PATH 64 /* Return NULL if too long path */ #define MY_RELATIVE_PATH 128 /* name is relative to 'dir' */ #define MY_APPEND_EXT 256 /* add 'ext' as additional extension*/ /* My seek flags */ #define MY_SEEK_SET 0 Loading
mysql-test/r/alter_table.result +4 −4 Original line number Diff line number Diff line Loading @@ -373,10 +373,10 @@ t1 0 PRIMARY 2 User A 0 NULL NULL BTREE t1 1 Host 1 Host A NULL NULL NULL BTREE disabled DROP TABLE t1; create table t1 (a int); alter table t1 rename to `t1\\`; ERROR 42000: Incorrect table name 't1\\' rename table t1 to `t1\\`; ERROR 42000: Incorrect table name 't1\\' alter table t1 rename to ``; ERROR 42000: Incorrect table name '' rename table t1 to ``; ERROR 42000: Incorrect table name '' drop table t1; drop table if exists t1, t2; Warnings: Loading
mysql-test/r/create.result +8 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,14 @@ ERROR 42000: Incorrect table definition; there can be only one auto column and i create table not_existing_database.test (a int); ERROR 42000: Unknown database 'not_existing_database' create table `a/a` (a int); ERROR 42000: Incorrect table name 'a/a' show create table `a/a`; Table Create Table a/a CREATE TABLE `a/a` ( `a` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 create table t1 like `a/a`; drop table `a/a`; drop table `t1`; create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int); ERROR 42000: Incorrect table name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int); Loading Loading @@ -360,8 +367,6 @@ create table t3 like non_existing_table; ERROR 42S02: Unknown table 'non_existing_table' create temporary table t3 like t1; ERROR 42S01: Table 't3' already exists create table t3 like `a/a`; ERROR 42000: Incorrect table name 'a/a' drop table t1, t2, t3; drop table t3; drop database mysqltest; Loading
mysql-test/r/mysqldump.result +1 −1 Original line number Diff line number Diff line Loading @@ -1627,7 +1627,7 @@ mysqldump: Couldn't find table: "T_" test_sequence ------ Testing with illegal database names ------ mysqldump: Got error: 1049: Unknown database 'mysqldump_test_d' when selecting the database mysqldump: Got error: 1102: Incorrect database name 'mysqld\ump_test_db' when selecting the database mysqldump: Got error: 1049: Unknown database 'mysqld\ump_test_db' when selecting the database drop table t1, t2, t3; drop database mysqldump_test_db; use test; Loading