Revert faulty warning fix

This commit is contained in:
Ilia Alshanetsky 2009-05-19 16:14:13 +00:00
parent 9e230424b5
commit 70fb8c85f1

View file

@ -265,6 +265,10 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi
case SQLITE3_TEXT:
*ptr = (char*)sqlite3_column_text(S->stmt, colno);
*len = sqlite3_column_bytes(S->stmt, colno);
if (*len) {
/* sqlite3.h says "the NUL terminator is included in the byte count for TEXT values" */
*len--; /* do not remove this, even though it generates a warning */
}
return 1;
default: