#32400 [Fbk->Opn]: MSSQL Error ignoring
ID: 32400
User updated by: davidc at densi dot com
Reported By: davidc at densi dot com
-Status: Feedback
+Status: Open
Bug Type: MSSQL related
Operating System: Debian Testing
PHP Version: 4.3.10
New Comment:
We are not compiling anything from the sources, we are using apt-get
and debian packages, also, it's the newest packages(Apache/2.0.53
(Debian GNU/Linux) PHP/4.3.10-9).
I might just make a patch and submit it if there's nothing about that
yet. Let me know. Thanks
Previous Comments:
------------------------------------------------------------------------
[2005-03-21 22:37:47] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-03-21 21:01:06] davidc at densi dot com
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 this bug report at http://bugs.php.net/?id=32400&edit=1
Thread (4 messages)