19 Aug
2004
19 Aug
'04
5:50 p.m.
Chris Withers wrote at 2004-8-19 09:09 +0200:
...
The only problem with "_v_" variables is that they can disappear at subtransaction boundaries.
Yep, and with no attempt to close the RDB connection they represent, leaking DB connections...
This is the responsibility of the class which encapulates the connection (its instances are used as values of the "_v_connection" attribute) if it does not happen automatically. It happens automatically for ZPsycopgDA. It happened automatically for an ancient ZOracleDA version (I used several years ago) after I had prevented the creation of a cyclic structure (which prevented automatic garbage collection). -- Dieter