]> granicus.if.org Git - php/commitdiff
Removing clucking debug and tweak the reset call
authorWez Furlong <wez@php.net>
Sun, 26 Sep 2004 20:52:07 +0000 (20:52 +0000)
committerWez Furlong <wez@php.net>
Sun, 26 Sep 2004 20:52:07 +0000 (20:52 +0000)
ext/pdo_sqlite/sqlite_statement.c

index 431563df101a9ea65e1fa8826976db2ac4ae7541..fd61bb78ecdfda697f85f080e0e5b880a0e01217 100644 (file)
@@ -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;
        }