Bug #20 subselect do not work in SET statement
Submitted: 4 Jan 2003 11:19 Modified: 4 Jan 2003 15:34
Reporter: Oleksandr Byelkin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1 OS:Any (any)
Assigned to: Oleksandr Byelkin CPU Architecture:Any

[4 Jan 2003 11:19] Oleksandr Byelkin
Description:
subselect do not work in SET statement 

How to repeat:
mysql> create table a (a int); 
Query OK, 0 rows affected (0.00 sec) 
                                
mysql> insert into a values (1); 
Query OK, 1 row affected (0.02 sec) 
                               
mysql> set @a:=(select a from a);   
ERROR 2013: Lost connection to MySQL server during query 

Suggested fix:
I think non-open tables again