diff options
author | Wez Furlong <wez@php.net> | 2005-02-28 01:30:14 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-02-28 01:30:14 +0000 |
commit | f58e2006d5b21d6f8530b99064f55105834c5d1e (patch) | |
tree | 51ad6b4cfb27820f4cf44652b34b5180cc3350d0 /ext/pdo_sqlite | |
parent | fdc3fce3353abac842a33713966f688be40b676c (diff) | |
download | php-git-f58e2006d5b21d6f8530b99064f55105834c5d1e.tar.gz |
fix for PECL Bug #3452
Diffstat (limited to 'ext/pdo_sqlite')
-rw-r--r-- | ext/pdo_sqlite/sqlite_statement.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 1c2c02ca30..d26b4a9b92 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -145,7 +145,6 @@ static int pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt, if (S->done) { return 0; } - i = sqlite3_step(S->stmt); switch (i) { case SQLITE_ROW: @@ -182,11 +181,9 @@ static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) case SQLITE_FLOAT: case SQLITE3_TEXT: case SQLITE_BLOB: - stmt->columns[colno].param_type = PDO_PARAM_STR; - break; case SQLITE_NULL: default: - stmt->columns[colno].param_type = PDO_PARAM_NULL; + stmt->columns[colno].param_type = PDO_PARAM_STR; break; } @@ -204,7 +201,6 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi pdo_sqlite_error_stmt(stmt); return 0; } - switch (sqlite3_column_type(S->stmt, colno)) { case SQLITE_NULL: *ptr = NULL; |