#34067 [Opn->Bgs]: can not get correct result in some cases
| From: | sniper@php.net | Date: | Thu, 11 Aug 2005 09:23:23 +0000 |
| Subject: | #34067 [Opn->Bgs]: can not get correct result in some cases | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83357@lists.php.net to get a copy of this message | ||
ID: 34067
Updated by: sniper@php.net
Reported By: syre at citiz dot net
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: win2000
PHP Version: 5.0.3
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-08-11 11:17:33] syre at citiz dot net
see bug #31044
even phpmyadmin can not get the correct result
------------------------------------------------------------------------
[2005-08-10 13:59:36] 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-10 13:57:54] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34067&edit=1