Re: [Dbi-interbase-devel] Setting of transaction conduct
Status: Beta
Brought to you by:
edpratomo
From: Edwin P. <ed....@co...> - 2000-08-25 14:42:40
|
Michael Samanov wrote: > Would it be bad if we could assign transaction behaviour the way, say: > { > local $dbh->{AutoCommit} = 0; > $sth = $dbh->prepare("...", { ib_transaction_paramXXX => YYY, ... }); > ... > } Why do you think it would be bad? But, I'd rather to assign the transaction parameters to $dbh, in other words, as database handle attributes. What I have in my mind is to write a ib_set_transaction() method, to replace the SET TRANSACTION command, where users can specify the txn params. Or perhaps ib_set_transaction_params(), which should be followed by a $dbh->{AutoCommit} = 0 to actually start a new trans. Rgds, Edwin. > > It's following to the Mark's suggestion (my thoughts are incredibly > fast). |