Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Mason, DBI, and DBI::Pg

Reply
Thread Tools

Mason, DBI, and DBI::Pg

 
 
Asby
Guest
Posts: n/a
 
      07-24-2003
Heard a lot about Mason, so I'm playing around with it. I builded a
Postgresql database, with a simple table with one user in it. I wrote a
script which will check the database for the user and print the output.
Somehow it doesn't work always, don't know what is going wrong, but I get my
expected output and if I refresh it will give me sometimes the following
error:

System error
error: Undefined subroutine &DBD:g::db::_login called at
/usr/lib/perl5/site_perl/5.8.0/i686-linux/DBD/Pg.pm line 98.

context: ...
94: }
95: $sth->finish;
96: $dbh->disconnect;
97: return @sources;
98: }
99:
100:
101: sub connect {
102: my($drh, $dbname, $user, $auth)= @_;
....

code stack: /usr/lib/perl5/site_perl/5.8.0/i686-linux/DBD/Pg.pm:98
/usr/lib/perl5/site_perl/5.8.0/i686-linux/DBI.pm:513
/home/httpd/htdocs/challenge/autohandler:22

All my modules are fresh from CPAN and still I get this error sometimes.
What gives me this error and how can I solve it?

--
ttfn,

Asby
Follow your money: http://www.eurobilltracker.com/index.php?referer=6215


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM



Advertisments