Message401383
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(?) |
|
| Date |
User |
Action |
Args |
| 2021-09-08 14:05:15 | erlendaasland | set | recipients:
+ erlendaasland |
| 2021-09-08 14:05:15 | erlendaasland | set | messageid: <1631109915.01.0.788685972139.issue45138@roundup.psfhosted.org> |
| 2021-09-08 14:05:14 | erlendaasland | link | issue45138 messages |
| 2021-09-08 14:05:14 | erlendaasland | create | |
|