anuradha [[EMAIL PROTECTED]] wrote:
> Hi ,
>    
>   I have a problem in DB connectivity.
> 
> I working with CGI,Perl language and Postgres Database.
> I installed the DBI-1.19 and DBD-Pg-1.01 versions and I am unable to
> access the DB(postgres) . These were installed as per the instructions
> given in the README file. I am beginner in installation.
> 
> The line :
>       $dbh = DBI->connect("DBI::Pg:dbname=$TEST_REGISTRY");

Where's your error checking?  Read the DBI Perldocs(perldoc DBI)
on RaiseError.  In fact, read the whole "perldoc DBI" - it will
save you a LOT of time in the long run.

You should at least be using || die, like this:

   $dbh = DBI->connect("DBI::Pg:dbname=$TEST_REGISTRY") || die "Couldn't connect: 
$DBI::errstr";

> 
> (where $TEST_REGISTRY ="treg8080"[database name])
> 
> is not getting executed. 
> 
> The problem is that I am not getting any error message also in the
> logfile.
> 
> Is something wrong with the DynaLoader or anything else?
> 
> Can anyone help me ?
> 
> Thanks
> Anuradha
>   

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

Reply via email to