Bug 201988 - Queries using a column name multiple times in ORDER BY crash mysql
Summary: Queries using a column name multiple times in ORDER BY crash mysql
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mysql
Version: 4.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Tom Lane
QA Contact: David Lawrence
URL: http://bugs.mysql.com/bug.php?id=20287
Whiteboard:
Depends On: 278461
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-10 08:17 UTC by Anchor Systems Managed Hosting
Modified: 2018-10-20 00:14 UTC (History)
3 users (show)

Fixed In Version: RHSA-2008-0768
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-24 20:04:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2008:0768 0 normal SHIPPED_LIVE Moderate: mysql security, bug fix, and enhancement update 2008-07-24 17:12:22 UTC

Description Anchor Systems Managed Hosting 2006-08-10 08:17:59 UTC
Description of problem:

The problem has been logged here: http://bugs.mysql.com/bug.php?id=20287
In essence if you double up a table name in a query's ORDER BY section, mysql
will crash.

Version-Release number of selected component (if applicable):
4.1.20-1.RHEL4.1

How reproducible:
Every time using an appropriate query.

Steps to Reproduce:
1. Generate a query that uses a particular table name twice (or more times) in
the ORDER BY section, such as the following:

SELECT DISTINCT memberId ,lastName ,firstName ,email
,emailConfirm ,registered ,lastContacted ,stateId
,postcode ,lastAttended ,ccRemember ,ccName ,ccType
,ccSecurity ,ccNumber ,ccExpiry ,address1 ,address2
,suburb ,phone ,fax ,phoneOther ,mobile ,bounced
,bouncedDate ,donotsend ,comments ,interestEventTypeId FROM
tblDiscoverMassageMembers ORDER BY
firstName,lastName,lastName,firstName LIMIT 20;
  
Actual results:
MySQL segfaults

Expected results:
The query should return without MySQL segfaulting.

Comment 2 RHEL Program Management 2008-02-01 19:12:51 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 8 errata-xmlrpc 2008-07-24 20:04:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2008-0768.html


Note You need to log in before you can comment on or make changes to this bug.