Skip to content

Commit b683c61

Browse files
author
Ilia Alshanetsky
committed
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
1 parent 52f5996 commit b683c61

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ext/pdo_sqlite/sqlite_statement.c

-10
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,6 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi
262262
*len = sqlite3_column_bytes(S->stmt, colno);
263263
return 1;
264264

265-
case SQLITE3_TEXT:
266-
*ptr = (char*)sqlite3_column_text(S->stmt, colno);
267-
*len = sqlite3_column_bytes(S->stmt, colno);
268-
#if SQLITE_VERSION_NUMBER < 3004000
269-
if (*len) {
270-
/* sqlite3.h says "the NUL terminator is included in the byte count for TEXT values" */
271-
(*len)--;
272-
}
273-
#endif
274-
return 1;
275265
default:
276266
*ptr = (char*)sqlite3_column_text(S->stmt, colno);
277267
*len = sqlite3_column_bytes(S->stmt, colno);

0 commit comments

Comments
 (0)