diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-05-20 15:05:36 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-05-20 15:05:36 +0000 |
commit | b683c61e604665e4e29e5a80acdc6f9089999c3f (patch) | |
tree | 0a99534fb7ef2b9f2cc31a4a00f1bbf0d61812ce /ext/pdo_sqlite/sqlite_statement.c | |
parent | 52f599687a175d84d83899233b71bad8221311a1 (diff) | |
download | php-git-b683c61e604665e4e29e5a80acdc6f9089999c3f.tar.gz |
MFB: Re-introduce the Matteo's patch and combine default & text handling
since they appear to be the same irregardless on notes inside sqlite3.h
Diffstat (limited to 'ext/pdo_sqlite/sqlite_statement.c')
-rw-r--r-- | ext/pdo_sqlite/sqlite_statement.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 2d32a0bf1f..2adf2f6a58 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -262,16 +262,6 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi *len = sqlite3_column_bytes(S->stmt, colno); return 1; - case SQLITE3_TEXT: - *ptr = (char*)sqlite3_column_text(S->stmt, colno); - *len = sqlite3_column_bytes(S->stmt, colno); -#if SQLITE_VERSION_NUMBER < 3004000 - if (*len) { - /* sqlite3.h says "the NUL terminator is included in the byte count for TEXT values" */ - (*len)--; - } -#endif - return 1; default: *ptr = (char*)sqlite3_column_text(S->stmt, colno); *len = sqlite3_column_bytes(S->stmt, colno); |