php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8407 set rowcount n will return no result
Submitted: 2000-12-24 12:20 UTC Modified: 2001-01-04 12:02 UTC
From: steeven at kali dot com dot cn Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.4 OS: windowsme+sql2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 + 17 = ?
Subscribe to this entry?

 
 [2000-12-24 12:20 UTC] steeven at kali dot com dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-04 12:02 UTC] fmk@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC