summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_statement.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-07-20 02:19:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-07-20 02:19:20 +0000
commit1e1d2e2b0d791a2c925b374f9a63bc3e5a8c9570 (patch)
treee6658d9831c49051adb9f324c4fb5e1d4acf8a9a /ext/pdo_mysql/mysql_statement.c
parent8adbc92d4b4eafd05e326cc183ebdf8806f6fd9e (diff)
downloadphp-git-1e1d2e2b0d791a2c925b374f9a63bc3e5a8c9570.tar.gz
clean up
Diffstat (limited to 'ext/pdo_mysql/mysql_statement.c')
-rwxr-xr-xext/pdo_mysql/mysql_statement.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c
index 3f26ddb3cc..452ac67e53 100755
--- a/ext/pdo_mysql/mysql_statement.c
+++ b/ext/pdo_mysql/mysql_statement.c
@@ -93,9 +93,9 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
/* if buffered, pre-fetch all the data */
if (H->buffered) {
- my_bool on = 1;
/* if we have bound the buffers don't set the attribute again */
if (!S->result) {
+ my_bool on = 1;
mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on);
}
mysql_stmt_store_result(S->stmt);
@@ -140,7 +140,6 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
}
}
- ;
row_count = mysql_stmt_affected_rows(S->stmt);
if (row_count != (my_ulonglong)-1) {
stmt->row_count = row_count;