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:
None 
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
Description:
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
    http://www.mysql.com/doc/en/Installing_source_tree.html

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

Page generated in 0.049 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.