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
-$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
-$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
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
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
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
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
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.
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.
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
10 matches
Mail list logo