mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
e709eb9bf7
# Conflicts: # mysql-test/suite/galera/r/MW-388.result # mysql-test/suite/galera/t/MW-388.test # mysql-test/suite/innodb/r/truncate_inject.result # mysql-test/suite/innodb/t/truncate_inject.test # mysql-test/suite/rpl/r/rpl_stop_slave.result # mysql-test/suite/rpl/t/rpl_stop_slave.test # sql/sp_head.cc # sql/sp_head.h # sql/sql_lex.cc # sql/sql_yacc.yy # storage/xtradb/buf/buf0dblwr.cc
21 lines
679 B
Text
21 lines
679 B
Text
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
|
|
create table t1 (a int primary key) engine=innodb;
|
|
|
|
# Test that warnings produced during autocommit (after calling
|
|
# set_ok_status()) are still reported to the client.
|
|
SET @saved_dbug = @@SESSION.debug_dbug;
|
|
SET SESSION debug_dbug="+d,warn_during_ha_commit_trans";
|
|
INSERT INTO t1 VALUES (1);
|
|
# The warning will be shown automatically by mysqltest; there was a bug where
|
|
# this didn't happen because the warning was not counted when sending result
|
|
# packet. Show the warnings manually also.
|
|
SHOW WARNINGS;
|
|
|
|
drop table t1;
|
|
SET debug_dbug= @saved_dbug;
|