| 1 |
# |
| 2 |
# Preparatory cleanup. |
| 3 |
# |
| 4 |
DROP TABLE IF EXISTS t1; |
| 5 |
# |
| 6 |
# We need a fixed timestamp to avoid varying results. |
| 7 |
# |
| 8 |
SET timestamp=1000000000; |
| 9 |
# |
| 10 |
# Delete all existing binary logs. |
| 11 |
# |
| 12 |
RESET MASTER; |
| 13 |
# |
| 14 |
# Bug#22350047: IF CLIENT KILLED AFTER ROLLBACK TO SAVEPOINT PREVIOUS |
| 15 |
# STMTS COMMITTED |
| 16 |
# |
| 17 |
CREATE TABLE t1(a INT) ENGINE=InnoDB; |
| 18 |
BEGIN; |
| 19 |
INSERT INTO t1 VALUES(1); |
| 20 |
SAVEPOINT tx_0; |
| 21 |
ROLLBACK TO SAVEPOINT tx_0; |
| 22 |
KILL CONNECTION CONN_ID; |
| 23 |
# Without the patch, field 'a' contained the value 1 |
| 24 |
SELECT * FROM t1; |
| 25 |
a |
| 26 |
DROP TABLE t1; |