Erlend E. Aasland <erlend.aasl...@innova.no> added the comment:

As Gerhard said in msg233384, there is already a statement cache. 
sqlite3_prepare_v2() is only called if the statement is not found in the cache.

Current behaviour:
>>> import sqlite3
>>> cx = sqlite3.connect(":memory:")
>>> cu = cx.cursor()
>>> cu.execute("select 1")  # sqlite3_prepare_v2() called
>>> cu.execute("select 1")  # sqlite3_prepare_v2() is _not_ called


Suggesting to close this issue.

----------
nosy: +erlendaasland

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22956>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to