From: Wez Furlong Date: Sun, 26 Sep 2004 20:52:07 +0000 (+0000) Subject: Removing clucking debug and tweak the reset call X-Git-Tag: PRE_NEW_VM_GEN_PATCH~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69a91aae8e3bcb9709f1abc873c28e9141ddd439;p=php Removing clucking debug and tweak the reset call --- diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 431563df10..fd61bb78ec 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -51,7 +51,7 @@ static int pdo_sqlite_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) pdo_sqlite_db_handle *H = S->H; int i; - if (stmt->executed) { + if (stmt->executed && !S->done) { sqlite3_reset(S->stmt); } @@ -149,7 +149,6 @@ static int pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt TSRMLS_DC) return 0; default: - printf("cluck done=%d pre_fetched=%d executed=%d\n", S->done, S->pre_fetched, stmt->executed); pdo_sqlite_error_stmt(stmt); return 0; }