DBI and do

2010-04-15 Thread Knoerl, Thomas
Hello folks, Is there are reason why the 'select(all|col)_*' methods support the handover of statement handles, but 'do' doesn't? Is it possible to change the statement assignment? Current: my $sth = $dbh-prepare($statement, $attr) or return undef; Suggested: my $sth = (ref $stmt) ? $stmt :

Re: DBI package problem?

2010-04-15 Thread Tim Bunce
On Tue, Mar 30, 2010 at 12:42:44AM +0200, rosenfield.alb...@gmail.com wrote: • dependencies I still think that DBI should be XS, and people should really try very very hard to make that work. Pure-perl DBI won't fly. Modules and applications that are now depending on DBI do not want to

Re: Thread safety for DBD::File and DBD::DBM's inheritance

2010-04-15 Thread Tim Bunce
On Mon, Apr 12, 2010 at 12:55:28PM +0200, Jens Rehsack wrote: So I did last days when I played around with threads and Log::Log4perl::Appender::DBI. I've seen, than (even if in my simply example everything works fine), a cloned DBD::File still uses the same file handles for reading/writing.

Re: DBI and do

2010-04-15 Thread John Scoles
Knoerl, Thomas wrote: Hello folks, Is there are reason why the 'select(all|col)_*' methods support the handover of statement handles, but 'do' doesn't? $dbh-do() is what I would call a 'short hand' or 'short cut' method. It was included for the CUD (Creation Update Delete) operations

Re: connecting()?

2010-04-15 Thread Tim Bunce
On Wed, Mar 31, 2010 at 10:14:04AM -0700, David E. Wheeler wrote: Fellow DBIers, I was just discussing writing a callback on connect() to change authentication (my correspondent wants to use realm files). But then I discovered to my disappointment that there is no support for callbacks on

DBD::mysql 4.014 released

2010-04-15 Thread Patrick Galbraith
It's been an extremely busy year thus far with all the great work we're doing at NorthScale as well as the release of CaptTofu 2.0 (My son Kiran!). With the new UI on rt.cpan.org, in my spare time, I went through and closed some bugs, hence a new release of DBD::mysql, 4.014. In this release:

Re: connecting()?

2010-04-15 Thread David E. Wheeler
On Apr 15, 2010, at 5:17 AM, Tim Bunce wrote: $drh = DBI-install_driver($driver); $dbh = $drh-connect(...); Assuming we added a $dbh-connecting() method, how would it be called, and how would the callback have been enabled prior to calling it? In connect(), before $connect_meth, just