David E. Wheeler

Results 436 comments of David E. Wheeler

There could be. Pull requests for additional driver support gladly accepted!

On Nov 7, 2012, at 3:23 PM, Aran Deltac [email protected] wrote: > • txn() and svp() do not work if AutoCommit is off. Well, if AutocCommit is off, then a...

Yes, it can tell when it's in a transaction. No, I don't know the proper way to handle `mysql_auto_reconnect`; changes were mostly in response to [various bug reports](/ap/DBIx-Connector/issues?utf8=✓&q=mysql_auto_reconnect).

I wouldn't turn down a patch that offered a lightweight implementation of such a thing. I don't think it would need to be very complicated. I'd like to see what...

FWIW, setting `AutoCommit` _is_ the DBI's interface. The transaction methods you mention were added later. But to answer your question, the direct hash stuff is used so that things can...

It is but sometimes it's not the right choice. If you were to switch DBIx::Connector over to them, I'm pretty sure the tests will fail. The ability to use `local`...

It can be done. DBIc implements `txn_do()` with its transaction guard stuff. The thing to do would be to add the guard interface to Connector without regard to `txn()`, at...

[Like this](https://github.com/theory/dbix-connector/blob/master/lib/DBIx/Connector.pm#L203) -- yes, using `begin_work`, `commit`, and `rollback`. Looks like I forgot that DBIx::Connector does _not_ set `AutoCommit`. It just checks it to see if it's in a transaction...

I started to work on this, but this doesn't work: ``` diff --git a/lib/DBIx/Connector/Driver/Pg.pm b/lib/DBIx/Connector/Driver/Pg.pm index c85e044..982443e 100644 --- a/lib/DBIx/Connector/Driver/Pg.pm +++ b/lib/DBIx/Connector/Driver/Pg.pm @@ -20,6 +20,31 @@ sub rollback_to { $dbh->pg_rollback_to($name);...

FWIW, encoding/base64 emits `_____________________w`.