mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
hide INVISIBLE and engine field options under sql_mode=no_field_options hide PARSER and engine key options under sql_mode=no_key_options
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
--source include/not_embedded.inc
|
|
--source include/have_simple_parser.inc
|
|
|
|
--echo #
|
|
--echo # BUG#39746 - Debug flag breaks struct definition (server crash)
|
|
--echo #
|
|
--replace_result .dll .so
|
|
eval INSTALL PLUGIN simple_parser SONAME '$MYPLUGLIB_SO';
|
|
CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
|
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
|
DROP TABLE t1;
|
|
UNINSTALL PLUGIN simple_parser;
|
|
|
|
#
|
|
# Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
|
|
#
|
|
show status like 'a%status';
|
|
|
|
--echo #
|
|
--echo # MDEV-35050 Found wrong usage of mutex upon setting plugin session variables
|
|
--echo #
|
|
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
|