1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-35308 NO_KEY_OPTIONS SQL mode has no effect on engine key options

hide INVISIBLE and engine field options under sql_mode=no_field_options
hide PARSER and engine key options under sql_mode=no_key_options
This commit is contained in:
Sergei Golubchik
2024-11-01 13:31:48 +01:00
parent e5a5d2b78d
commit 574e18f80d
9 changed files with 162 additions and 89 deletions

View File

@@ -22,6 +22,33 @@ show status like 'a%status';
install soname 'mypluglib';
set session_track_system_variables="*";
set session simple_parser_simple_thdvar_one = 10;
set session_track_system_variables="";
uninstall soname 'mypluglib';
--echo # End of 10.5 tests
--echo #
--echo # MDEV-35308 NO_KEY_OPTIONS SQL mode has no effect on engine key options
--echo #
install soname 'mypluglib';
set sql_mode=ignore_bad_table_options;
create table t1 (
f1 int foo=bar primary key auto_increment,
f2 int default 3 invisible,
f3 text,
vf1 int as (f2+2) invisible,
unique (f1) koo=12,
fulltext (f3) with parser simple_parser
) too=yes;
show create table t1;
set sql_mode=no_table_options;
show create table t1;
set sql_mode=no_field_options;
show create table t1;
set sql_mode=no_key_options;
show create table t1;
drop table t1;
set sql_mode=default;
uninstall soname 'mypluglib';
--echo # End of 11.7 tests