mariadb/mysql-test/suite/sql_sequence
Andrei e7cf871dda MDEV-24617 OPTIMIZE on a sequence causes unexpected ER_BINLOG_UNSAFE_STATEMENT
The warning out of OPTIMIZE
  Statement is unsafe because it uses a system function
was indeed counterfactual and was resulted by checking an
insufficiently strict property of lex' sql_command_flags.

Fixed with deploying an additional checking of weather
the current sql command that modifes a share->non_determinstic_insert
table is capable of generating ROW format events.
The extra check rules out the unsafety to OPTIMIZE et al, while the
existing check continues to do so to CREATE TABLE (which is
perculiarly tagged as ROW-event generative sql command).

As a side effect sql_sequence.binlog test gets corrected and
binlog_stm_unsafe_warning.test is reinforced to add up
an unsafe CREATE..SELECT test.
2022-03-10 13:38:07 +02:00
..
alter.result Don't allow ALTER TABLE ... ORDER BY on SEQUENCE objects 2020-06-07 16:32:00 +03:00
alter.test Don't allow ALTER TABLE ... ORDER BY on SEQUENCE objects 2020-06-07 16:32:00 +03:00
alter_notembedded.result
alter_notembedded.test
aria.result
aria.test
auto_increment.result
auto_increment.test
binlog.result MDEV-24617 OPTIMIZE on a sequence causes unexpected ER_BINLOG_UNSAFE_STATEMENT 2022-03-10 13:38:07 +02:00
binlog.test MDEV-24617 OPTIMIZE on a sequence causes unexpected ER_BINLOG_UNSAFE_STATEMENT 2022-03-10 13:38:07 +02:00
concurrent_create.result MDEV-24545 Sequence created by one connection remains invisible to another 2021-04-27 08:44:28 +03:00
concurrent_create.test MDEV-24545 Sequence created by one connection remains invisible to another 2021-04-27 08:44:28 +03:00
create.result MDEV-19273: Server crash in MDL_ticket::has_stronger_or_equal_type or Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, table->db.str, table->table_name.str, MDL_SHARED)' failed in mysql_rm_table_no_locks 2020-12-09 12:31:12 +01:00
create.test MDEV-19273: Server crash in MDL_ticket::has_stronger_or_equal_type or Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, table->db.str, table->table_name.str, MDL_SHARED)' failed in mysql_rm_table_no_locks 2020-12-09 12:31:12 +01:00
debug_sync.opt
debug_sync.result
debug_sync.test
default.result MDEV 22785 Crash with prepared statements and NEXTVAL() 2021-08-26 07:07:46 +03:00
default.test MDEV 22785 Crash with prepared statements and NEXTVAL() 2021-08-26 07:07:46 +03:00
disabled.def
grant.result
grant.test
gtid-master.opt
gtid-slave.opt
gtid.result
gtid.test
kill.result MDEV-16929 Assertion ... in close_thread_tables upon killing connection 2020-07-21 15:12:53 +03:00
kill.test MDEV-16929 Assertion ... in close_thread_tables upon killing connection 2020-07-21 15:12:53 +03:00
lock.result
lock.test
mysqldump.result MDEV-21785: sequences used as default by other table not dumped in right order by mysqldump 2021-01-26 10:41:02 +01:00
mysqldump.test MDEV-21785: sequences used as default by other table not dumped in right order by mysqldump 2021-01-26 10:41:02 +01:00
next.result MDEV-24018: SIGSEGV in Item_func_nextval::update_table on SELECT SETVAL 2020-10-27 15:17:54 +01:00
next.test MDEV-24018: SIGSEGV in Item_func_nextval::update_table on SELECT SETVAL 2020-10-27 15:17:54 +01:00
other.result MDEV-19273: Server crash in MDL_ticket::has_stronger_or_equal_type or Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, table->db.str, table->table_name.str, MDL_SHARED)' failed in mysql_rm_table_no_locks 2020-12-09 12:31:12 +01:00
other.test MDEV-19273: Server crash in MDL_ticket::has_stronger_or_equal_type or Assertion `thd->mdl_context.is_lock_owner(MDL_key::TABLE, table->db.str, table->table_name.str, MDL_SHARED)' failed in mysql_rm_table_no_locks 2020-12-09 12:31:12 +01:00
partition.result
partition.test
read_only.result
read_only.test
rebuild.result mtr: fix tests funcs_1.is_tables_is & sql_sequence.rebuild 2021-07-02 16:42:21 +10:00
rebuild.test
rename.result
rename.test
replication-master.opt
replication-slave.opt
replication.result
replication.test
replication_drop.result
replication_drop.test
replication_mixed.result
replication_mixed.test
setval.result
setval.test
slave_nextval.result
slave_nextval.test
temporary.result
temporary.test
view.result
view.test