Re: RT issue #44461 (lo functions and AutoCommit)

[email protected] ("Greg Sabino Mullane")
Newsgroups perl.dbd.pg
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> $dbh->{AutoCommit}=1;
> $dbh->do("BEGIN");
> my $oid=$dbh->func($file, 'lo_import');
> # other things...
> $dbh->do("ROLLBACK");

Good point, I fixed the code to handle AutoCommit in the proper way.
Note that you really should be using $dbh->begin_work() and
$dbh->rollback() instead of callng do() in this circumstance.

- --
Greg Sabino Mullane [email protected]
End Point Corporation
PGP Key: 0x14964AC8 200903222215
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAknG8N8ACgkQvJuQZxSWSsgMLACfZuWjUxjlJuyryvMPwLlsDNjz
ofYAnRBfTe58LAr3zRJfU13ytXMzf9hL
=9oGb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.