fmk Mon Aug 8 19:09:08 2005 EDT
Modified files:
/php-src/ext/mssql php_mssql.c
Log:
Make sure this works for multiple results as well
http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.151&r2=1.152&ty=u
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.151 php-src/ext/mssql/php_mssql.c:1.152
--- php-src/ext/mssql/php_mssql.c:1.151 Mon Aug 8 18:55:56 2005
+++ php-src/ext/mssql/php_mssql.c Mon Aug 8 19:09:06 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mssql.c,v 1.151 2005/08/08 22:55:56 fmk Exp $ */
+/* $Id: php_mssql.c,v 1.152 2005/08/08 23:09:06 fmk Exp $ */
#ifdef COMPILE_DL_MSSQL
#define HAVE_MSSQL 1
@@ -1859,6 +1859,7 @@
result->num_fields = dbnumcols(mssql_ptr->link);
result->fields = (mssql_field *)
safe_emalloc(sizeof(mssql_field), result->num_fields, 0);
+ result->have_fields = 0;
result->num_rows = _mssql_fetch_batch(mssql_ptr, result,
retvalue TSRMLS_CC);
RETURN_TRUE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php