in reply to Re: DBD Sybase Transaction begin_work fails , post #2
in thread DBD Sybase Transaction begin_work fails , post #2
my $sth = $dbh->prepare("exec PerlTest2 \@RetVal = ? OUTPUT, \@SomePar +am = ? "); $sth->bind_param(1, undef, SQL_INTEGER); $sth->bind_param(2, "val1", SQL_VARCHAR); $sth->execute; # first batch exec $sth->bind_param(1, undef); $sth->bind_param(2, "val22"); $sth->execute; # exec some more $sth->finish; $dbh->rollback; # <---- still records get committed into the dB !!! print "finishing...\n"; $dbh->disconnect; close dbh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD Sybase Transaction begin_work fails , post #2
by vitoco (Hermit) on Sep 16, 2009 at 18:26 UTC | |
by vcoderv (Initiate) on Sep 16, 2009 at 18:51 UTC | |
by Jenda (Abbot) on Sep 16, 2009 at 23:44 UTC | |
by vcoderv (Initiate) on Sep 17, 2009 at 12:44 UTC |