Bug #5055 SQL_SELECT_LIMIT=0 crashes command line client
Submitted: 14 Aug 2004 13:47 Modified: 18 Aug 2004 6:06
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S2 (Serious)
Version:4.0, 4.1, 5.0 OS:Linux (Linux)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[14 Aug 2004 13:47] Georg Richter
Description:
I tried to unset SQL_SELECT_LIMIT with SET GLOBAL SET SQL_SELECT_LIMIT=0 which crashes the 
command line client. 
 
Also there seems to be no way to unset this variable to it's default value (unless you know it's initial 
value). 

How to repeat:
4.1.4-beta-debug-log 
[13:40] root@test> SET GLOBAL SQL_SELECT_LIMIT=0; 
Query OK, 0 rows affected (0.00 sec) 
 
4.1.4-beta-debug-log 
[13:40] root@test> \r 
Connection id:    7 
Current database: test 
 
4.1.4-beta-debug-log 
[13:40] root@test> \s 
-------------- 
/usr/local/mysql-4.1/bin/mysql  Ver 14.5 Distrib 4.1.4-beta, for pc-linux (i686) 
 
Connection id:          7 
Speicherzugriffsfehler (=Segmentation fault :)
[16 Aug 2004 20:03] Dean Ellis
Verified against 4.0.21:

SET SQL_SELECT_LIMIT=0;
\s
[18 Aug 2004 6:06] Ramil Kalimullin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html