diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2018-03-12 18:29:31 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-03-12 18:29:54 +0000 |
commit | 248e5d01a57d4d3783081112ce4852593dfe3742 (patch) | |
tree | 9fcde6cae965f56cc667826a2387d83bf846f12c /mysql-test | |
parent | 5511e8ed5941e3b5a7687f87a1fb4fa75815ee7b (diff) | |
download | mariadb-git-248e5d01a57d4d3783081112ce4852593dfe3742.tar.gz |
MDEV-14581 Warning info not cleared when caching THD
In thread caching code, clear THD's warnings before reuse.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/t/warnings-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/warnings.test | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/mysql-test/t/warnings-master.opt b/mysql-test/t/warnings-master.opt index 21356507809..1aa6001465b 100644 --- a/mysql-test/t/warnings-master.opt +++ b/mysql-test/t/warnings-master.opt @@ -1 +1 @@ ---loose-skip-innodb +--loose-skip-innodb --thread-handling=one-thread-per-connection diff --git a/mysql-test/t/warnings.test b/mysql-test/t/warnings.test index 573f3c538c7..9360d32f93d 100644 --- a/mysql-test/t/warnings.test +++ b/mysql-test/t/warnings.test @@ -286,3 +286,15 @@ SHOW WARNINGS; DROP TABLE t1; DROP FUNCTION f1; + +# MDEV-14581 Warning info not cleared when caching THD +connect (con1,localhost,root,,); +SELECT TIME('10:10:10.11111111111'); +disconnect con1; + +connect (con2,localhost,root,,); +SHOW WARNINGS; +disconnect con2; + +connection default; + |