Bug #70532 'explain for connection' should return an error for invalid connection_id

Submitted: 5 Oct 2013 18:20 Modified: 13 Nov 2013 13:14
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S4 (Feature request)
Version:5.7.3 OS:Any
Assigned to: CPU Architecture:Any

[5 Oct 2013 18:20] Shane Bester
Description:
I expect the same error message for both statements instead of a silent empty result for the second one:

mysql> kill 999999;
ERROR 1094 (HY000): Unknown thread id: 999999
mysql> explain for connection 999999;
Query OK, 0 rows affected (0.00 sec)

How to repeat:
kill 999999;
explain for connection 999999;
[13 Nov 2013 13:14] Paul DuBois
Noted in 5.7.3 changelog.

EXPLAIN FOR CONNECTION reported no error if the connection ID
belonged to no connection thread.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.