-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> All I'm proposing to change is to add a way for drivers to indicate
> if they are in a transaction or not, and then to use that to disable
> the warning.
 
That what I was thinking about. Since DBD::Pg already tracks whether
or not it is in a transaction, it should be simply a matter of:
 
if (!DBIc_has(imp_dbh,DBIcf_AutoCommit) && imp_dbh->done_begin) {
  if (DBIc_WARN(imp_dbh) && (!dirty || DBIc_DBISTATE(imp_dbh)->debug >= 3))
    warn("Issuing rollback() for database handle...
 
- --
Greg Sabino Mullane [EMAIL PROTECTED]
PGP Key: 0x14964AC8 200402121918
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQFALBhYvJuQZxSWSsgRAuLcAKDsBkuFK37pKtMrNy/fQnBRafek+wCfVK0p
s2ysyGHV8jEtHTFibv5ttQ8=
=t993
-----END PGP SIGNATURE-----


Reply via email to