Re: connecting()?

2010-04-16 Thread Tim Bunce
On Thu, Apr 15, 2010 at 10:07:14AM -0700, David E. Wheeler wrote: 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

Re: connecting()?

2010-04-16 Thread David E. Wheeler
On Apr 16, 2010, at 3:13 AM, Tim Bunce wrote: In connect(), before $connect_meth, just as connected() is called in that method after $connect_meth. $dbh-connected(@orig_args); unless ($dbh = $drh-$connect_meth($dsn, $user, $pass, $attr)) { $dbh is undef before the

Re: connecting()?

2010-04-16 Thread H.Merijn Brand
On Fri, 16 Apr 2010 12:41:32 -0700, David E. Wheeler da...@kineticode.com wrote: On Apr 16, 2010, at 3:13 AM, Tim Bunce wrote: In connect(), before $connect_meth, just as connected() is called in that method after $connect_meth. $dbh-connected(@orig_args); unless ($dbh =

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

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

Re: connecting()?

2010-03-31 Thread H.Merijn Brand
On Wed, 31 Mar 2010 10:14:04 -0700, David E. Wheeler da...@kineticode.com 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