#34067 [NEW]: can not get correct result in some cases
| From: | syre at citiz dot net | Date: | Wed, 10 Aug 2005 11:57:54 +0000 |
| Subject: | #34067 [NEW]: can not get correct result in some cases | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83299@lists.php.net to get a copy of this message | ||
From: syre at citiz dot net
Operating system: win2000
PHP version: 5.0.3
PHP Bug Type: MySQL related
Bug description: can not get correct result in some cases
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 bug report at http://bugs.php.net/?id=34067&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34067&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34067&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34067&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34067&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34067&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34067&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34067&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34067&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34067&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34067&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34067&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34067&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34067&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34067&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34067&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34067&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34067&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34067&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34067&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34067&r=mysqlcfg