This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients erlendaasland
Date 2021-09-08.14:05:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631109915.01.0.788685972139.issue45138@roundup.psfhosted.org>
In-reply-to
Content
For SQLite 3.14.0 and newer, we're using the v2 trace API. This means that the trace callback receives a pointer to the sqlite3_stmt object. We can use the sqlite3_stmt pointer to retrieve expanded SQL string.

The following statement...:
cur.executemany("insert into t values(?)", ((v,) for v in range(3)))

...will produce the following traces:
  insert into t values(0)
  insert into t values(1)
  insert into t values(2)

...instead of:
  insert into t values(?)
  insert into t values(?)
  insert into t values(?)
History
Date User Action Args
2021-09-08 14:05:15erlendaaslandsetrecipients: + erlendaasland
2021-09-08 14:05:15erlendaaslandsetmessageid: <1631109915.01.0.788685972139.issue45138@roundup.psfhosted.org>
2021-09-08 14:05:14erlendaaslandlinkissue45138 messages
2021-09-08 14:05:14erlendaaslandcreate