mirror of
https://github.com/MariaDB/server.git
synced 2025-07-17 12:02:09 +03:00
MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE
fix "engine does not support TRANSACTIONAL=1" error message to match user input
This commit is contained in:
@ -1290,7 +1290,7 @@ drop table if exists t1,t2,t3;
|
|||||||
# Fix modified for MariaDB: we support this syntax
|
# Fix modified for MariaDB: we support this syntax
|
||||||
create table t1 (a int) transactional=0;
|
create table t1 (a int) transactional=0;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TRANSACTIONAL=1'
|
Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TRANSACTIONAL=0'
|
||||||
create table t2 (a int) page_checksum=1;
|
create table t2 (a int) page_checksum=1;
|
||||||
create table t3 (a int) row_format=page;
|
create table t3 (a int) row_format=page;
|
||||||
drop table t1,t2,t3;
|
drop table t1,t2,t3;
|
||||||
|
@ -4254,7 +4254,8 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
|
|||||||
ER_ILLEGAL_HA_CREATE_OPTION,
|
ER_ILLEGAL_HA_CREATE_OPTION,
|
||||||
ER_THD(thd, ER_ILLEGAL_HA_CREATE_OPTION),
|
ER_THD(thd, ER_ILLEGAL_HA_CREATE_OPTION),
|
||||||
file->engine_name()->str,
|
file->engine_name()->str,
|
||||||
"TRANSACTIONAL=1");
|
create_info->transactional == HA_CHOICE_YES
|
||||||
|
? "TRANSACTIONAL=1" : "TRANSACTIONAL=0");
|
||||||
|
|
||||||
if (parse_option_list(thd, file->partition_ht(), &create_info->option_struct,
|
if (parse_option_list(thd, file->partition_ht(), &create_info->option_struct,
|
||||||
&create_info->option_list,
|
&create_info->option_list,
|
||||||
|
Reference in New Issue
Block a user