good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In other words, it holds the part after the driver indication in the DSN part. When e.g. connecting to CSV like
The return values for $dbh->{Name} will be f_ext=.csv/r;f_encoding=utf-8, which might not be very useful information. The fact the DBD::Pg in your case returns the correct database name, might be because you initiated the connection using something like
but when you connect using just "dbi:Pg:" in combination with the environment variable $PGDATABASE, you might not get anything useful at all
Enjoy, Have FUN! H.Merijn In reply to Re^3: DBI:how to get name of the db ?
by Tux
|
|