[issue45138] [sqlite3] expand bound values in traced statements if possible

2021-09-08 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26660 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28240 ___ Python tracker __

[issue45138] [sqlite3] expand bound values in traced statements if possible

2021-09-08 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : 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