Re: Trying to install DBD::Pg on Windows XP

"Greg Sabino Mullane" <greg-738XdyZ4GzZWk0Htik3J/[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> The directions in the README got me a DBD::Pg that could not connect to
> a database at all... (the tests should not pass if it does that!)

Yes, those directions are outdated and need to be updated. So feel free
to submit a patch! We have very few people on the list running Windows,
thus it doesn't get as much attention as the *nix side of things.

> More information on what tests fail and the system settings are in the
> attached file.

The good news is that none of the failing tests look to be of extreme importance.

> C:/strawberry/perl/lib/CORE/win32.h:238:1: warning: "isnan" redefined

This should probably be cleaned up at some point. It's unclear if we can do it
at the DBD::Pg level however.

> t/02attribs.t ....... 1/249 DBD::Pg::db do failed: ERROR:  character 0xc480
> of encoding "UTF8" has no equivalent in "WIN1252" at t/02attribs.t line 431.

I just made a commit (12766) which should fix both instances of this problem,
by simply skipping the test unless the server encoding is UTF8.

> #   Failed test 'Trace flag 'pglogin' works as expected with
> DBD::Pg->parse_trace_flag() at t/04misc.t line 225.
> #     got: 'Login connection string:
> # Connection complete
> #     DESTROY for DBI::db=HASH(0x11774a4) ignored - handle not initialised

Not sure what is going on here: some interaction of Windows + DBI is
causing what I assume is a mostly harmless warning: assumed because
all of the other test pass. :)

> Error removing dbdpg_test_5GWCPRtst at C:/STRAWB~1/perl/lib/File/Temp.pm line 89

Some sort of Windows/File::Temp bug. I don't see any bugs there related to it -
can you tell us what version you are using?

> C:\DBD-Pg-2.13.1>set TEST_VERBOSE=1
>
> C:\DBD-Pg-2.13.1>dmake test

This did not seem to work, FWIW.

Thanks for the detailed report. Hopefully somebody on the list will recognize
that "handle not initialized" error.

- --
Greg Sabino Mullane greg-738XdyZ4GzZWk0Htik3J/[email protected]
End Point Corporation
PGP Key: 0x14964AC8 200905181007
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAkoRa5kACgkQvJuQZxSWSsgobwCg9iSZ6yITUTZEDvBuST+UVScf
yzwAn2fYrEINuMwEiANVxSgjJd4dfY6R
=fKBS
-----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.