Bug #9379 Updated: mssql_query can't get result

From: Date: Sat, 30 Jun 2001 18:57:28 +0000
Subject: Bug #9379 Updated: mssql_query can't get result
Groups: php.dev 
Request: Send a blank email to php-dev+get-58542@lists.php.net to get a copy of this message
ID: 9379 Updated by: fmk Reported By: napoleon@autoid.ee Old-Status: Open Status: Closed Bug Type: MSSQL related Operating system: PHP Version: 4.0.3pl1 Assigned To: Comments: This is not a bug in the extension. You are sending queries to the server that causes the server to report errors. Previous Comments: --------------------------------------------------------------------------- [2001-02-21 13:45:45] napoleon@autoid.ee mssql_query() can't fetch result from server if I use sql server variables in query. For example this script: <?php mssql_connect([server],[user],[password]) $sql_result=mssql_query("declare @kala int;select @kala=5;delete from [table] where field1=@kala"); $sql_result2=mssql_query("select * from kasutajad"); ?> If I turned error severity to 0 I saw following error:MS SQL error: Attempt to initiate a new SQL Server operation with results pending. (severity 7) in c:htdocssqltest.php on line 4 ...but the first query has no result to fetch... --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9379&edit=2

« previous php.dev (#58542) next »