1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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
This commit is contained in:
Oleksandr Byelkin
2018-04-23 10:35:33 +02:00
parent de942c9f61
commit 14f84d2071
3 changed files with 32 additions and 0 deletions

View File

@ -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