PHP 4.0 Bug #8407 Updated: set rowcount n will return no result

From: Date: Thu, 04 Jan 2001 17:02:57 +0000
Subject: PHP 4.0 Bug #8407 Updated: set rowcount n will return no result
Groups: php.dev 
Request: Send a blank email to php-dev+get-42953@lists.php.net to get a copy of this message
ID: 8407 Updated by: fmk Reported By: steeven@kali.com.cn Old-Status: Open Status: Closed Bug Type: MSSQL related Assigned To: Comments: You will need to execute this in three statements. You are sending tree statements and the last does not return any data so the result will be empty. Previous Comments: --------------------------------------------------------------------------- [2000-12-24 12:20:17] steeven@kali.com.cn $q=" set rowcount 5 select * from tbl set rowcount 0 "; $r= mssql_query($q); $r will be empty! $q="select TOP 5 * from tbl "; this will work. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8407

« previous php.dev (#42953) next »