#34067 [Opn->Bgs]: can not get correct result in some cases
| From: | derick@php.net | Date: | Wed, 10 Aug 2005 11:59:37 +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-83301@lists.php.net to get a copy of this message | ||
ID: 34067
Updated by: derick@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:
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.
.
Previous Comments:
------------------------------------------------------------------------
[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