#41393 [Opn->Asn]: affected can't return

From: Date: Tue, 03 Jul 2007 07:07:50 +0000
Subject: #41393 [Opn->Asn]: affected can't return
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114593@lists.php.net to get a copy of this message
ID: 41393 Updated by: tony2001@php.net Reported By: hack988 at gmail dot com -Status: Open +Status: Assigned Bug Type: MSSQL related Operating System: windows 2003 PHP Version: 4.4.7 -Assigned To: +Assigned To: fmk Previous Comments: ------------------------------------------------------------------------ [2007-05-15 04:13:50] hack988 at gmail dot com Description: ------------ after executed sql query like that IF NOT EXISTS (SELECT * FROM NumberGroup WHERE (GroupName = 'rrgrrg')) INSERT INTO NumberGroup(GroupName, AddTime) VALUES ('rrgrrg', 1); an executed mssql_rows_affected alway return 0 either GroupName= 'rrgrrg' not in database Reproduce code: --------------- i have no idea to deal with this problem by myself Expected result: ---------------- mssql_query("IF NOT EXISTS (SELECT * FROM NumberGroup WHERE (GroupName = 'rrgrrg')) INSERT INTO NumberGroup(GroupName, AddTime) VALUES ('rrgrrg', 1);"); var_dump(mssql_affected_rows($dblink); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41393&edit=1

« previous php.bugs (#114593) next »