Bug #1847 Round Brackets Cause LIMIT to be ignored
Submitted: 15 Nov 2003 22:05 Modified: 4 Dec 2003 12:25
Reporter: Mike Hillyer Email Updates:
Status: Closed Impact on me:
Category:MySQL Server Severity:S2 (Serious)
Version:4.1.0 OS:Windows (Windows 2000)
Assigned to: Alexander Keremidarski CPU Architecture:Any

[15 Nov 2003 22:05] Mike Hillyer
Hi All;

When I perform a query on any table such as

SELECT * FROM mytable LIMIT 10;

I get 10 rows. If I do the following:

(SELECT * FROM mytable LIMIT 10);

I get all rows in the table returned.

Sorry if this is a repeat, but a quick search of the bug system didn't turn anything up.

How to repeat:
(SELECT * FROM mytable LIMIT 10);

Substitute your own table name.
[16 Nov 2003 7:54] Alexander Keremidarski
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