#34067 [Bgs->Opn]: can not get correct result in some cases
| From: | syre at citiz dot net | Date: | Thu, 11 Aug 2005 09:17:35 +0000 |
| Subject: | #34067 [Bgs->Opn]: can not get correct result in some cases | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83355@lists.php.net to get a copy of this message | ||
ID: 34067
User updated by: syre at citiz dot net
Reported By: syre at citiz dot net
-Status: Bogus
+Status: Open
Bug Type: MySQL related
Operating System: win2000
PHP Version: 5.0.3
New Comment:
see bug #31044
even phpmyadmin can not get the correct result
Previous Comments:
------------------------------------------------------------------------
[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