#31372 [Opn->Bgs]: php_mssql.dll generates error despite the query is correct.

From: Date: Sat, 01 Jan 2005 15:47:02 +0000
Subject: #31372 [Opn->Bgs]: php_mssql.dll generates error despite the query is correct.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71370@lists.php.net to get a copy of this message
ID: 31372 Updated by: derick@php.net Reported By: captain5ive at yahoo dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: Windows 2000 PHP Version: 4.3.10 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2005-01-01 15:03:11] captain5ive at yahoo dot com Description: ------------ Using php_mssql.dll when you query Microsoft SQL Server 2000, mssql returns the following informational message. Changed database context to 'SampleDB'. This is not an error but the new mssql extension returns error. Every php application that works with SQL Server now encounter this bug if they handle errors. Reproduce code: --------------- $link = mssql_connect("server", "sa", ""); mssql_select_db("SampleDB", $link); mssql_query("DELETE FROM SampleTable WHERE id=10", $link) or die(mssql_get_last_message()); Expected result: ---------------- No error must be returned because everything is ok. Actual result: -------------- The following error is returned. Changed database context to 'SampleDB'. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31372&edit=1

« previous php.bugs (#71370) next »