1CREATE TABLE bug51920 (i INT) ENGINE=InnoDB;
2INSERT INTO bug51920 VALUES (1);
3BEGIN;
4SELECT * FROM bug51920 FOR UPDATE;
5i
61
7connect  con1,localhost,root,,;
8connection con1;
9UPDATE bug51920 SET i=2;
10connection default;
11SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
12WHERE INFO="UPDATE bug51920 SET i=2"
13INTO @thread_id;
14Warnings:
15Warning	1287	'<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
16KILL @thread_id;
17connection con1;
18Got one of the listed errors
19connection default;
20DROP TABLE bug51920;
21disconnect con1;
22