Am 30.04.24 um 00:00 schrieb Alan Grunwald:
The whole web-scraping activity is wrapped in a try statement; the first statement within the try is begintransation; if execution reaches the
end of the try the transaction is committed; if if there is an error,
the trasaction is rolled back.
Yes, the better way is to use try.
I've just had another look at the tdbc_statement manual page and I see
that this may well be designed behaviour; I see that [statement execute] returns a resultset object. I had not noticed that before
and am very sure that I haven't closed these objects.
According to the manual it should already happen with close of the tdbc statement.
https://www.tcl.tk/man/tcl/TdbcCmd/tdbc_statement.htm
The close object command removes a statement and any result sets that
it has created. All system resources associated with the objects are freed.
!
I only got involved with introspection here after your question. I found something new about tdbc for myself.
https://www.magicsplat.com/articles/tdbc.html#_introspection
and
https://www.tcl-lang.org/man/tcl/TdbcCmd/tdbc_connection.htm
db statements
The statements object command returns a list of statements that have
been created by prepare and preparecall statements against the given
connection and have not yet been closed.
db resultsets
The resultsets object command returns a list of result sets that have
been obtained by executing statements prepared using the given
connection and not yet closed.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)