mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added test case for MDEV-15742 to prove that it works
MDEV-15742 Assertion `table_share->tmp_table != NO_TMP_TABLE || m_lock_type == 1' failed in handler::ha_write_row
This commit is contained in:
@ -17,3 +17,13 @@ a
|
||||
select * from t2;
|
||||
a
|
||||
drop tables s1, t1, t2;
|
||||
CREATE SEQUENCE s1;
|
||||
LOCK TABLE s1 READ;
|
||||
SELECT NEXTVAL(s1);
|
||||
ERROR HY000: Table 's1' was locked with a READ lock and can't be updated
|
||||
SELECT NEXTVAL(s);
|
||||
ERROR HY000: Table 's' was not locked with LOCK TABLES
|
||||
DROP SEQUENCE s1;
|
||||
ERROR HY000: Table 's1' was locked with a READ lock and can't be updated
|
||||
unlock tables;
|
||||
DROP SEQUENCE s1;
|
||||
|
Reference in New Issue
Block a user