wez Fri Sep 30 00:19:25 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/pdo_odbc odbc_stmt.c
Log:
Fix for PECL #5433 (rowCount() not set)
http://cvs.php.net/diff.php/php-src/ext/pdo_odbc/odbc_stmt.c?r1=1.26&r2=1.26.2.1&ty=u
Index: php-src/ext/pdo_odbc/odbc_stmt.c
diff -u php-src/ext/pdo_odbc/odbc_stmt.c:1.26
php-src/ext/pdo_odbc/odbc_stmt.c:1.26.2.1
--- php-src/ext/pdo_odbc/odbc_stmt.c:1.26 Tue Jul 19 12:55:22 2005
+++ php-src/ext/pdo_odbc/odbc_stmt.c Fri Sep 30 00:19:24 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: odbc_stmt.c,v 1.26 2005/07/19 16:55:22 wez Exp $ */
+/* $Id: odbc_stmt.c,v 1.26.2.1 2005/09/30 04:19:24 wez Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -69,6 +69,7 @@
RETCODE rc;
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
char *buf = NULL;
+ long row_count = -1;
if (stmt->executed) {
SQLCloseCursor(S->stmt);
@@ -133,6 +134,9 @@
return 0;
}
+ SQLRowCount(S->stmt, &row_count);
+ stmt->row_count = row_count;
+
if (!stmt->executed) {
/* do first-time-only definition of bind/mapping stuff */
SQLSMALLINT colcount;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php