mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
parent
bb31072d3e
commit
d33fecdde8
2 changed files with 2 additions and 5 deletions
|
@ -265,11 +265,6 @@ 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--;
|
||||
}
|
||||
return 1;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue