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

Find current database name from db handle

Thread Next
From:
Kostas Chatzikokolakis
Date:
February 3, 2008 17:02
Subject:
Find current database name from db handle
Hello,

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)?

Thanks in advance,
Kostas


Thread Next


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