summaryrefslogtreecommitdiff
path: root/mysql-test/main/union.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-04-23 10:35:33 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2018-04-23 12:48:13 +0200
commit14f84d207177f5cf626377fb760a296a9fceb10d (patch)
tree875c83004a9c9deea4ee51d80af375ce53cbb837 /mysql-test/main/union.test
parentde942c9f618b590a01a7960c171d7e50e435708f (diff)
downloadmariadb-git-14f84d207177f5cf626377fb760a296a9fceb10d.tar.gz
MDEV-13232: Assertion `(&(&share->intern_lock)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&share->intern_lock)->m_mutex)->thread)' failed in _ma_state_info_write
Limit length of result of "negative" operation to something reasonable
Diffstat (limited to 'mysql-test/main/union.test')
-rw-r--r--mysql-test/main/union.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/main/union.test b/mysql-test/main/union.test
index f86cae87524..b9b38271f83 100644
--- a/mysql-test/main/union.test
+++ b/mysql-test/main/union.test
@@ -1745,6 +1745,21 @@ SHOW CREATE TABLE t2;
DROP TABLE t2;
DROP TABLE t1;
+--echo #
+--echo # MDEV-13232: Assertion `(&(&share->intern_lock)->m_mutex)->count > 0 &&
+--echo # pthread_equal(pthread_self(), (&(&share->intern_lock)->m_mutex)->
+--echo # thread)' failed in _ma_state_info_write
+--echo #
+
+CREATE TABLE t1 (c1 CHAR(8));
+INSERT INTO t1 VALUES ('10'),('-10');
+
+CREATE TABLE t2 (c2 CHAR);
+SET @a= CAST('10' AS CHAR);
+
+SELECT c1 FROM t1 UNION SELECT - @a FROM t2;
+
+drop table t1,t2;
--echo #
--echo # End of 10.3 tests