mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
06dafb4a39
to the client connection, not to the error log. This change will allow innodb-index.test to be re-enabled. It was previously disabled, because mysql-test-run does not like output in the error log. row_create_table_for_mysql(): Do not output anything to the error log when reporting DB_DUPLICATE_KEY. Let the caller report the error. Add a TODO comment that the dict_table_t object is apparently not freed when an error occurs. create_table_def(): Convert InnoDB table names to the character set of the client connection for reporting. Use my_error(ER_WRONG_COLUMN_NAME) for reporting reserved column names. Report my_error(ER_TABLE_EXISTS_ERROR) when row_create_table_for_mysql() returns DB_DUPLICATE_KEY. rb://206
17 lines
530 B
Text
17 lines
530 B
Text
# This is the test for bug 44369. We should
|
|
# block table creation with columns match
|
|
# some innodb internal reserved key words,
|
|
# both case sensitively and insensitely.
|
|
|
|
--source include/have_innodb.inc
|
|
|
|
# This create table operation should fail.
|
|
--error ER_WRONG_COLUMN_NAME
|
|
create table bug44369 (DB_ROW_ID int) engine=innodb;
|
|
|
|
# This create should fail as well
|
|
--error ER_WRONG_COLUMN_NAME
|
|
create table bug44369 (db_row_id int) engine=innodb;
|
|
|
|
--error ER_WRONG_COLUMN_NAME
|
|
create table bug44369 (db_TRX_Id int) engine=innodb;
|