Re: undefined behaviour for sub-transactions?

Re: undefined behaviour for sub-transactions?

am 15.11.2005 09:32:25 von Jochen Wiedmann

On 11/15/05, Tyler MacDonald wrote:

> Ok. If that's the only behaviour that can be depended on, then I
> guess the best choice would be to make a wrapper around the database hand=
le
> that keeps track of the transaction status.

Did you understand me? There is no such thing as a "transaction
status" in DBI. There always is a current, and uncommitted
transaction. Nothing more, nothing less.

--
Often it does seem a pity that Noah and his party did not miss the
boat. (Mark Twain)

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules @m.gmane.org

Re: undefined behaviour for sub-transactions?

am 15.11.2005 09:45:48 von Tyler MacDonald

Jochen Wiedmann wrote:
> > Ok. If that's the only behaviour that can be depended on, then I
> > guess the best choice would be to make a wrapper around the database handle
> > that keeps track of the transaction status.
> Did you understand me? There is no such thing as a "transaction
> status" in DBI. There always is a current, and uncommitted
> transaction. Nothing more, nothing less.

Yep, I understood perfectly.

- Tyler

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: undefined behaviour for sub-transactions?

am 15.11.2005 09:57:37 von Tyler MacDonald

Tyler MacDonald wrote:
> Jochen Wiedmann wrote:
> > > Ok. If that's the only behaviour that can be depended on, then I
> > > guess the best choice would be to make a wrapper around the database handle
> > > that keeps track of the transaction status.
> > Did you understand me? There is no such thing as a "transaction
> > status" in DBI. There always is a current, and uncommitted
> > transaction. Nothing more, nothing less.
>
> Yep, I understood perfectly.

I just took a look on CPAN, and it looks like somebody else has run
into the same problem I have:

http://search.cpan.org/~porton/DBI-Transaction-0.101/

But it's licensed under the GPL, so if I wrote my package using it,
I would be encumbered by the GPL by proxy. :-/

- Tyler

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: undefined behaviour for sub-transactions?

am 15.11.2005 09:57:37 von Tyler

Tyler MacDonald wrote:
> Jochen Wiedmann wrote:
> > > Ok. If that's the only behaviour that can be depended on, then I
> > > guess the best choice would be to make a wrapper around the database handle
> > > that keeps track of the transaction status.
> > Did you understand me? There is no such thing as a "transaction
> > status" in DBI. There always is a current, and uncommitted
> > transaction. Nothing more, nothing less.
>
> Yep, I understood perfectly.

I just took a look on CPAN, and it looks like somebody else has run
into the same problem I have:

http://search.cpan.org/~porton/DBI-Transaction-0.101/

But it's licensed under the GPL, so if I wrote my package using it,
I would be encumbered by the GPL by proxy. :-/

- Tyler