Re: [sqlite] SQLITE_STMT extension

2017-08-05 Thread Bart Smissaert
Ah, OK. I will just keep track then of statement handles in my own code, which is quite simple. RBS On Sat, Aug 5, 2017 at 2:54 PM, Richard Hipp wrote: > On 8/5/17, Bart Smissaert wrote: > > > > SQLite_stmt doesn't hold the statement handle... > > I wonder why this is. > > > > Because that w

Re: [sqlite] SQLITE_STMT extension

2017-08-05 Thread Richard Hipp
On 8/5/17, Bart Smissaert wrote: > > SQLite_stmt doesn't hold the statement handle... > I wonder why this is. > Because that would be a "pointer leak". https://sqlite.org/bindptr.html#ptrleak -- D. Richard Hipp d...@sqlite.org ___ sqlite-users mailin

[sqlite] SQLITE_STMT extension

2017-08-05 Thread Bart Smissaert
As I understand this the eponymous-only virtual table, sqlite_stmt, will show any active (so not finalized) statements on the current database connection. As mentioned this can be useful to track unfinalized statements and this is what I was interested in. There are 2 problems with this: Firstly a