|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-06 20:51 UTC] sniper@php.net
[2005-03-08 13:51 UTC] patrick dot schutte at gmx dot de
[2005-08-09 11:23 UTC] freddyz77 at tin dot it
[2005-11-18 22:25 UTC] fmk@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ I've written stored Procedures that returns 2 and more Resultsets (Select-Querys). If one of theese Results doesn't have any Matches I get the next one instead. System: Suse8.2, freetds 0.62.3 ./configure ... --with-mssql freetds with TDS-Version 7.0 and MSSQL-Server2000. Same Code works fine with WindowsNT4.0 Reproduce code: --------------- CREATE PROCEDURE [dbo].[dt_mehrfach] AS -- first Query: no match SELECT * FROM tbl_haribo WHERE id=10000 -- second Query: 15 matches SELECT * FROM tbl_haribo PHP: $p=mssql_init("dt_mehrfach); $result=mssql_execute($p); echo mssql_num_rows($result)."<br />\n"; mssql_next_result($result); echo mssql_num_rows($result); Expected result: ---------------- 0 15 would be ok Actual result: -------------- but I get 15 15