Re: DBD::Oracle - credentials

Tim Bunce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
On Fri, Jan 14, 2011 at 04:45:52PM +0100, H.Merijn Brand wrote:
> 
> Yes, the *DBD::Oracle* README. I know, I found it there, but I was more
> looking for guides from DBI. Does DBI document that DBU_USER/DBI_PASS
> would somehow overrule other (default) settings?

DBI_USER and DBI_PASS are applied as defaults in DBI->connect()
so, if set, they'll be applied before the driver gets a chance to
consider what to do.

It's the $drh->default_user() method that looks up the env vars.
That method isn't documented, which is a bug in itself.

> I think the DBD::Oracle README does exactly what it said. So it is not
> wrong.

Agreed. There may be room for practical improvements if there are clear
problems with the current behavior.

Tim.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.