[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

Erlend E. Aasland report at bugs.python.org
Tue Nov 9 08:57:16 EST 2021


Erlend E. Aasland <erlend.aasland at innova.no> added the comment:

> > What happens if set SQLITE_LIMIT_SQL_LENGTH to 0 [...]

In this case, the limit is actually zero:

    >>> cx.setlimit(sqlite3.SQLITE_LIMIT_SQL_LENGTH, 0)
    1024
    >>> cx.execute("select 1")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    sqlite3.DataError: string or blob too big

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45754>
_______________________________________


More information about the Python-bugs-list mailing list