[pypy-issue] Issue #2682: sqlite3.Cursor has lastrowid set to None for multiline INSERT queries (pypy/pypy)
desbma
issues-reply at bitbucket.org
Sat Oct 14 18:11:26 EDT 2017
New issue 2682: sqlite3.Cursor has lastrowid set to None for multiline INSERT queries
https://bitbucket.org/pypy/pypy/issues/2682/sqlite3cursor-has-lastrowid-set-to-none
desbma:
The attached code fails (assert at line 15) on Pypy2 or Pypy3 5.9.0.
It works well on CPython.
It took me a lot of time to simplify the test case down to this. Surprisingly lastrowid is set to None only if the insert query is a multi line string...
More information about the pypy-issue
mailing list