Works for me with DBD::Sybase 1.07_01, DBI 1.607 and Sybase ASE 15.0.3 Dev Edition, with the original order of finish() and rollback(), except that I had to add syb_chained_txn => 0, into the %attr because otherwise I got "Stored procedure PerlTest2 may be run only in unchained transaction mode."
Maybe there's something spicy going on with your mix of CHAINED/UNCHAINED mode, AutoCommit status and whatever's inside the stored procedure. I used just
create procedure dbo.PerlTest2( @id integer = NULL OUTPUT, @SomeParam varchar(100) ) as begin INSERT INTO test (stuff) VALUES (@SomeParam) SELECT @id = @@IDENTITY end go Grant Execute on dbo.PerlTest2 to test go sp_procxmode 'PerlTest2', unchained go
Update 2009-09-17: tested with newly built DBD::Sybase 1.09. Works correctly as well.
Update 2009-09-17 number 2: you can get the 1.09 for ActivePerl 5.8 by ppm install http://jenda.krynicky.cz/perl/DBD-Sybase.ppd
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^5: DBD Sybase Transaction begin_work fails , post #2
by Jenda
in thread DBD Sybase Transaction begin_work fails , post #2
by vcoderv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |