Re: connect from perl: error in Carp.pm

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: connect from perl: error in Carp.pm
Date: 2005-05-04 23:34:06
Message-ID: cdb940f1880be7cffb3de31634730700@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> When I try to connect as following, I get an error in Carp.pm:
>
> $dbh = DBI->connect("DBI:Pg:dbname=my_db", $username, $password,{AutoCommit
> => 1, RaiseError => }) || die "Unable to connect to database $DBI::errstr";
>
> => Not a CODE reference at /usr/lib/perl5/5.8.3/Carp.pm line 178.

> Maybe there are some right issue; I installed DBI and DBD as root, I'm
> calling the script as root, but postgres runs under its own user.

I doubt that's it, but I am not sure what is going on. Can you tell us more
about the circumstances: is this a standalone script. Perhaps an Apache
cgi script? What version of DBI, DBD::Pg, PostgreSQL, and (if applicable)
Apache?

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200505040730
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iD8DBQFCeLJ8vJuQZxSWSsgRAtJjAJ9nt32BwOR0w2+++lRbq6vOxpidFwCg2J8v
09LIIY04dj+ymCWZp6yj7o8=
=UyEq
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Roberto Rezende de Assis 2005-05-05 12:34:16 function returning record
Previous Message Frank Bax 2005-05-04 23:18:33 Re: date interval