static void pdo_mysql_stmt_set_row_count(pdo_stmt_t *stmt) /* {{{ */
{
- zend_long row_count;
pdo_mysql_stmt *S = stmt->driver_data;
- row_count = (zend_long) mysql_stmt_affected_rows(S->stmt);
+ zend_long row_count = (zend_long) mysql_stmt_affected_rows(S->stmt);
if (row_count != (zend_long)-1) {
stmt->row_count = row_count;
}
{
pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
pdo_mysql_db_handle *H = S->H;
-#ifdef PDO_USE_MYSQLND
- zend_long row_count;
-#endif
PDO_DBG_ENTER("pdo_mysql_stmt_next_rowset");
PDO_DBG_INF_FMT("stmt=%p", S->stmt);
}
}
}
- row_count = (zend_long) mysql_stmt_affected_rows(S->stmt);
- if (row_count != (zend_long)-1) {
- stmt->row_count = row_count;
- }
+ pdo_mysql_stmt_set_row_count(stmt);
PDO_DBG_RETURN(1);
}
#endif