develooper Front page | perl.dbi.users | Postings from February 2008

Re: Find current database name from db handle

Thread Previous
From:
Jonathan Leffler
Date:
February 3, 2008 22:14
Subject:
Re: Find current database name from db handle
On Feb 3, 2008 11:47 AM, Kostas Chatzikokolakis <chatziko@gmail.com> wrote:

> I'm using a dbi handle that is shared between many packages in my
> code. Some package might do a "USE db_name" to change the current
> database of the connection. Can I retrieve the current database name
> from the handle, either from DBI or from the DBD::mysql driver
> (without querying the server)?
>

What's wrong with 'perldoc DBI'?

What's the name attribute of a database handle documented as doing?

Does it not work for you?

And please don't double post without waiting for an answer or explaining
your double post.

-- 
Jonathan Leffler <jonathan.leffler@gmail.com>  #include <disclaimer.h>
Guardian of DBD::Informix - v2007.0914 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."


Thread Previous


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About