Re: connecting()?
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 been enabled prior to calling it? 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 $drh-$connect_meth call. It's not my needs. Someone is creating a CPAN module I think. His needs were met by connected(), but I think that connecting() would be useful as well. Perhaps but it sure seems like a low priority. If we did that (and handled backwards compatibility somewhow) then presumably new_child() could apply the Callbacks attribute which would then fire on the subsequent $dbh-connect call. That would be cool. I, alas, have a very short supply of tuits these days. Ditto. Tim.
Re: #dbi IRC channel
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Which is great but I was talking about DBI/DBD development not problems with DBDs. Apologies for the tone of my previous email, I misunderstood things and replied to hastily. As penance, I'll check out the #dbi channel on irc.perl.org and stay awhile. :) - -- Greg Sabino Mullane g...@turnstep.com End Point Corporation http://www.endpoint.com/ PGP Key: 0x14964AC8 201004161004 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -BEGIN PGP SIGNATURE- iEYEAREDAAYFAkvIbn8ACgkQvJuQZxSWSsht9wCbBC9R6YDagQKJkbDzaS+CagZV 5pIAoNMSXAhS6vj3BjN8jUT1YNe6DpE3 =0m3q -END PGP SIGNATURE-
Re: connecting()?
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 $drh-$connect_meth call. Oh. Well that'd have to change. It's not my needs. Someone is creating a CPAN module I think. His needs were met by connected(), but I think that connecting() would be useful as well. Perhaps but it sure seems like a low priority. I don't the tuits to do it, I admit. That would be cool. I, alas, have a very short supply of tuits these days. Ditto. Is that what's holding back 1.610? Best, David
Re: connecting()?
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 = $drh-$connect_meth($dsn, $user, $pass, $attr)) { $dbh is undef before the $drh-$connect_meth call. Oh. Well that'd have to change. It's not my needs. Someone is creating a CPAN module I think. His needs were met by connected(), but I think that connecting() would be useful as well. Perhaps but it sure seems like a low priority. I don't the tuits to do it, I admit. That would be cool. I, alas, have a very short supply of tuits these days. Ditto. Is that what's holding back 1.610? There will be no 1.610 $ perl -MV=DBI DBI /pro/lib/perl5/site_perl/5.12.0/i686-linux-64int-ld/DBI.pm: 1.611 -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00, 11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/