php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31044 UNION with parenthesis doest return first fields data
Submitted: 2004-12-09 23:21 UTC Modified: 2004-12-25 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: argentina at gmail dot com Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 4.3.8 OS: Linux Redhat
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-09 23:21 UTC] argentina at gmail dot com
Description:
------------
When I execute that query from MySQL directly (MySQL CC), all rows return correctly. When I execute it from PHP, the FIRST ROW does not return any data, but the next ones do.

If I remove the parenthesis, the query returns correctly all the data.

Reproduce code:
---------------
(SELECT * FROM table1)

UNION

(SELECT * FROM table2)




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-17 03:00 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


 [2004-12-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 02:03:34 2021 UTC