From:             davidc at densi dot com
Operating system: Debian Testing
PHP version:      4.3.10
PHP Bug Type:     MSSQL related
Bug description:  MSSQL Error ignoring

Description:
------------
This is a simple bug that I can fix in the mssql query but I believe that
this should be ignored automaticly by PHP. Basicly, I run this specific
sql query and it outputs an Unknown Error. Then I go to query analyzer and
the query works. But there's null values warnings. I can't use any @ to
ignore the error, it doesn't *ignore* it. I can run any other queries in
my php scripts and they work fine.

Reproduce code:
---------------
http://undernetlinuxnewbie.org/pastebin/view.php?id=126

which works but I get this:

Warning: Null value is eliminated by an aggregate or other SET operation.

Expected result:
----------------
Sales    NAME    LineDate       Incoming   Outgoing   Area
12       David   Mar 21, 2005   16         13         QC
04       Rob     Mar 21, 2004   12         28         ON

Actual result:
--------------
PHP:
Query error!

Error message: DB Error: unknown error


MSSQL:
Query Outputs the good result.
but this in the warnings:

Warning: Null value is eliminated by an aggregate or other SET operation.



-- 
Edit bug report at http://bugs.php.net/?id=32400&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32400&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32400&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32400&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32400&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32400&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32400&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32400&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32400&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32400&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32400&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32400&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32400&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32400&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32400&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32400&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32400&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32400&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32400&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32400&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32400&r=mysqlcfg

Reply via email to