php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34067 can not get correct result in some cases
Submitted: 2005-08-10 13:57 UTC Modified: 2005-08-11 11:23 UTC
From: syre at citiz dot net Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.0.3 OS: win2000
Private report: No CVE-ID: None
 [2005-08-10 13:57 UTC] syre at citiz dot net
Description:
------------
mysql extension can not get correct result in some cases





Reproduce code:
---------------
(
SELECT '' AS Code
FROM test1??type as Type
WHERE 1
)
UNION ALL (
SELECT code AS Code,'' as Type
FROM test2
WHERE 1
)

Expected result:
----------------
just as the result in mysql console

Actual result:
--------------
field Code will always be empty.
if uses

(
SELECT code AS Code,'' as Type
FROM test2
WHERE 1
)
UNION ALL (
SELECT '' AS Code
FROM test1??type as Type
WHERE 1

)

that will ok.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-10 13:59 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 [2005-08-11 11:17 UTC] syre at citiz dot net
see bug #31044

even phpmyadmin can not get the correct result
 [2005-08-11 11:23 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC