mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
fix for PECL Bug #3452
This commit is contained in:
parent
fdc3fce335
commit
f58e2006d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user