Commit:    c34a2757db80ee2a2f35583a73899330397cb35c
Author:    Stanley Sufficool <ssuffic...@php.net>         Sat, 1 Jun 2013 
00:38:09 -0700
Parents:   d9be9e0231277b7baf457f9a59dc7616624f8e2e
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=c34a2757db80ee2a2f35583a73899330397cb35c

Log:
FIX BUG #55647

PDO DBLIB was returning false if there were no results after a
statement was executed. This should be the fetch methods response
not the execute method response.

Bugs:
https://bugs.php.net/55647

Changed paths:
  M  ext/pdo_dblib/dblib_stmt.c


Diff:
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index d2b5736..c303045 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -146,10 +146,6 @@ static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt 
TSRMLS_DC)
        
        ret = pdo_dblib_stmt_next_rowset(stmt TSRMLS_CC);
        
-       if (ret == 0) {
-               return 0;
-       }
-       
        stmt->row_count = DBCOUNT(H->link);
        stmt->column_count = dbnumcols(H->link);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to