[MDEV-19366] 2nd execution of PS fails with ""Operation not permitted" from storage engine MEMORY" Created: 2019-04-30  Updated: 2022-06-27

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.4
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Alice Sherepa Assignee: Dmitry Shulga
Resolution: Unresolved Votes: 1
Labels: None


 Description   

CREATE TABLE t1 (pk int);
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
 
prepare stmt from "(((SELECT *  FROM t1 order by pk ) order by rand()) UNION (SELECT * FROM t1) );";
 
execute stmt;
execute stmt;

10.4 77109285f918a6b07

MariaDB [test]> prepare stmt from "(((SELECT *  FROM t1 order by pk ) order by rand()) UNION (SELECT * FROM t1) );";
Query OK, 0 rows affected (0.007 sec)
Statement prepared
 
MariaDB [test]> execute stmt;
+------+
| pk   |
+------+
|    1 |
|    2 |
|    3 |
|    4 |
|    5 |
+------+
5 rows in set (0.002 sec)
 
MariaDB [test]> execute stmt;
ERROR 1030 (HY000): Got error 1 "Operation not permitted" from storage engine MEMORY


Generated at Thu Feb 08 08:51:08 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.