Re: DBD-Pg crashes on Win32

Marco Bretschneider <Marco_Bretschneider-S0/[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Organization http://freemail.web.de/
Message-ID <[email protected]>
Hi again,

> I'm not a windows user, but the typical post of this type, in order to 
> be most helpful, will need at least:
> 
> 1) Postgresql version
> 2) Perl version
> 3) DBD::Pg version
> 4) Windows information (OS type, and maybe other information, depending 
> on #5)
> 5) Error messages and, ideally, a short piece of code that reproduces 
> the problem
> 
> Sean
> 

my system requirement is almost the same as the example on

http://www.perlmonks.org/?node_id=568380

I even tried newer versions with the same troubles, as "punkish" got:

1.) Postgres Version: 8.1 (event tried 8.2)
2.) Perl Version: 5.8.8 (Build 819) from (Activestate for MSWin32-x86-multi-thread)
3.) DBD::Pg Version: 1.45 ($Id: Pg.pm,v 1.187 2006/02/26 19:04:23 turnstep Exp $)
4.) WinXP SP2
5.) Windows Dialog Box - no message at all

The "piece of code" is quite easy :-)

__________________
use strict;

use DBI;

my $db = DBI->connect("dbi:Pg:dbname=gondolin;port=5432;host=127.0.0.1", "postgres", "postgres");

__________________

With some 'print "Hello world\n"'-debugging, if figured out, that the error returns in line 156 where "DBD::Pg::db::_login" is called. 

My modification

		# Connect to the database..
                print "Hello world\n";
		DBD::Pg::db::_login($dbh, $dbname, $user, $pass) or return undef;
                print "Hello world\n";

leads to just one "Hello world" on the output console. Searching the code for "_login" gave just one result (this in line 156)! In other words: There is no DBD::Pg::db::_login in my Pg.pm
Note that I installed the package using ppm. Maybe anything went wrong with the installation. Any advise will be welcome. I attached Pg.pm.

Greetings from Hamburg,
Marco.



_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Pg.pm (application/octet-stream, 105.1 KB) - not displayed
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.