Commit 674be2fd authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not...

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
parent 22b171d3
...@@ -1290,7 +1290,7 @@ drop table if exists t1,t2,t3; ...@@ -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, ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment