]> granicus.if.org Git - php/commitdiff
- Fixed bug #48185 removing no-op code
authorMatteo Beccati <mbeccati@php.net>
Thu, 7 May 2009 23:04:02 +0000 (23:04 +0000)
committerMatteo Beccati <mbeccati@php.net>
Thu, 7 May 2009 23:04:02 +0000 (23:04 +0000)
ext/pdo_sqlite/sqlite_statement.c

index ed838d04698805b44666ff4670e4c17c821b7ec0..d27de20b4bc11c1e4dde440b8d45155a3116a562 100644 (file)
@@ -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: