Replace the NULL with SQLITE_TRANSIENT.