php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9110 SELECT DISTINCT broken
Submitted: 2001-02-05 09:03 UTC Modified: 2001-02-05 09:05 UTC
From: karel at narfum dot org Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.3pl1 OS: Linux 2.2.x
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: karel at narfum dot org
New email:
PHP Version: OS:

 

 [2001-02-05 09:03 UTC] karel at narfum dot org
A simple query as this one complety ignores the DISTINCT statement:

"SELECT DISTINCT opponent,opponent_url FROM wars WHERE (opponent_url <> '' AND opponent_url <> 'http://' ) AND played='1' ORDER BY opponent,opponent_url"

I've searched this site and google.com for solutions for it, but php.net showed nothing and google had only more people reporting the same problem. I searched the bug database and didn't fin anything matching 'DISTINCT'. So this is my bugreport.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-05 09:05 UTC] derick@php.net
This has nothing to do with PHP, take a look at the MySQL documentation
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 10:03:34 2021 UTC