File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,8 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt) /* {{{ */
113
113
114
114
static void pdo_mysql_stmt_set_row_count (pdo_stmt_t * stmt ) /* {{{ */
115
115
{
116
- zend_long row_count ;
117
116
pdo_mysql_stmt * S = stmt -> driver_data ;
118
- row_count = (zend_long ) mysql_stmt_affected_rows (S -> stmt );
117
+ zend_long row_count = (zend_long ) mysql_stmt_affected_rows (S -> stmt );
119
118
if (row_count != (zend_long )- 1 ) {
120
119
stmt -> row_count = row_count ;
121
120
}
@@ -343,9 +342,6 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt) /* {{{ */
343
342
{
344
343
pdo_mysql_stmt * S = (pdo_mysql_stmt * )stmt -> driver_data ;
345
344
pdo_mysql_db_handle * H = S -> H ;
346
- #ifdef PDO_USE_MYSQLND
347
- zend_long row_count ;
348
- #endif
349
345
PDO_DBG_ENTER ("pdo_mysql_stmt_next_rowset" );
350
346
PDO_DBG_INF_FMT ("stmt=%p" , S -> stmt );
351
347
@@ -390,10 +386,7 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt) /* {{{ */
390
386
}
391
387
}
392
388
}
393
- row_count = (zend_long ) mysql_stmt_affected_rows (S -> stmt );
394
- if (row_count != (zend_long )- 1 ) {
395
- stmt -> row_count = row_count ;
396
- }
389
+ pdo_mysql_stmt_set_row_count (stmt );
397
390
PDO_DBG_RETURN (1 );
398
391
}
399
392
#endif
You can’t perform that action at this time.
0 commit comments