Re: DBI->data_sources("Pg") problem

[email protected] (Laslo Forro)
Newsgroups perl.dbi.users
Message-ID <[email protected]>
No, it doesn't work even after connecting the db.

DBI: 1.614
DBD::Pg: 2.17
installed locally in user's path via CPANP.

Postgresql: 8.4.4


On Mon, Sep 20, 2010 at 6:15 PM, Greg Sabino Mullane <[email protected]>wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
>
> > However, this piece of code gives nothing:
> > my @dbs=DBI->data_sources("Pg)";
>
> Works fine for me (once the quoting problem is fixed). What
> version of DBI and DBD::Pg do you have?
>
> Does it work if you connect to a Postgres database first,
> and then issue:
>
> my @dbs = $dbh->data_sources();
>
> - --
> Greg Sabino Mullane [email protected]
> End Point Corporation http://www.endpoint.com/
> PGP Key: 0x14964AC8 201009201214
> http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
> -----BEGIN PGP SIGNATURE-----
>
> iEYEAREDAAYFAkyXiHEACgkQvJuQZxSWSsjliQCgtp/aD3+CnF337rkMhoVvTQzy
> 6rIAn2OMLDQCYvUPcdX/mw7VDDjKNJwo
> =UK+k
> -----END PGP SIGNATURE-----
>
>
>
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.