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
-$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

Re: connecting()?

2010-04-16 Thread H.Merijn Brand
-$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

Re: connecting()?

2010-04-15 Thread Tim Bunce
was wondering how folks felt about the idea of adding a connecting() method that executes just before the DBI tries to connect to the database? I think this would be a nice complement to connecting(), and instantly make a simple interface for adding a pre-connection callback, too. DBI-connect

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

connecting()?

2010-03-31 Thread David E. Wheeler
before the callbacks are applied, and callbacks execute before the method, not afterward (at least for now). But I've found great use by adding callbacks on connected(), so that they execute just after a connection. So I was wondering how folks felt about the idea of adding a connecting() method

Re: connecting()?

2010-03-31 Thread H.Merijn Brand
a connection. So I was wondering how folks felt about the idea of adding a connecting () method that executes just before the DBI tries to connect to the database? I think this would be a nice complement to connecting (), and instantly make a simple interface for adding a pre-connection callback, too

Problem in connecting Perl with Oracle

2008-06-11 Thread Kanhaiya Prasad
Hello I've installed Perl 5.10 successfully and all other perl program running perfectly. But it's showing following problem when i'm trying to connect oracle Problem: 1. The procedure entry point OCIXML TypeCreateFromSrc could not be located in the dynamic link library OCI.dll. 2.

Re: Problem in connecting Perl with Oracle

2008-06-11 Thread John Scoles
You are using an older Oracle client that does not have OCIXML TypeCreateFromSrc Either use an earlier version of DBD.Oracle like 1.20 or 1.19 or update you Oracle client to the latest version of the instant client. can you post what the results of your Makefile.PL and your compile where.

Re: Problem connecting to non-default db

2003-09-11 Thread bilal . sheikh
Hi, Thanks, use dbA works. It doesn't work as part of a do statement (i.e. $dbh- do(use dbA)), but it looks like it's working when I prep and execute use dbA using a statement handle. I'm using DBD::Sybase v1.01, so I guess there's still an issue with DBI only connecting to the default db