PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Kiriakos Georgiou" <kirig at library dot nrl dot navy dot mil>
Subject: rollback
Date: Jul 12 2001 6:03PM

I use DBD::Sybase and I noticed that once in a while (6 out 430,000
transactions) my rollbacks appear to be failing.  I currently do:

eval { $dbh->rollback };
$@ and print "rollback failed: ", $@, "\n";

I can't think of a reason why a rollback would fail, but in an attempt
to force the rollback I am thinking of modifying the above to:

do {
  eval { $dbh->rollback };
} while($@);


Any thoughts?

thanks,
Kiriakos Georgiou