fmk             Tue Apr 20 19:30:52 2004 EDT

  Modified files:              
    /php-src/ext/mssql  php_mssql.c 
  Log:
  Fix problem getting return value from stored procedure when it returns multiple 
results
  
http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.133&r2=1.134&ty=u
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.133 php-src/ext/mssql/php_mssql.c:1.134
--- php-src/ext/mssql/php_mssql.c:1.133 Tue Mar 30 12:54:10 2004
+++ php-src/ext/mssql/php_mssql.c       Tue Apr 20 19:30:51 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_mssql.c,v 1.133 2004/03/30 17:54:10 fmk Exp $ */
+/* $Id: php_mssql.c,v 1.134 2004/04/20 23:30:51 fmk Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -1080,7 +1080,7 @@
                result->lastresult = retvalue;
        }
        efree(column_types);
-       if (result->statement) {
+       if (result->statement && (retvalue == NO_MORE_RESULTS || retvalue == 
NO_MORE_RPC_RESULTS)) {
                _mssql_get_sp_result(mssql_ptr, result->statement TSRMLS_CC);
        }
        return i;
@@ -1803,6 +1803,9 @@
                RETURN_FALSE;
        }
        else if (retvalue == NO_MORE_RESULTS || retvalue == NO_MORE_RPC_RESULTS) {
+               if (result->statement) {
+                       _mssql_get_sp_result(mssql_ptr, result->statement TSRMLS_CC);
+               }
                RETURN_FALSE;
        }
        else {

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

Reply via email to