Author: turnstep
Date: Tue Jul 14 07:35:09 2009
New Revision: 13055
Modified:
DBD-Pg/trunk/Changes
DBD-Pg/trunk/META.yml
DBD-Pg/trunk/Makefile.PL
DBD-Pg/trunk/Pg.pm
DBD-Pg/trunk/README
DBD-Pg/trunk/SIGNATURE
DBD-Pg/trunk/dbdimp.c
DBD-Pg/trunk/lib/Bundle/DBD/Pg.pm
DBD-Pg/trunk/quote.c
Log:
Apply patches from Taro Nishino to fix MS VC++ problems.
Bump version to 2.13.1_2
Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes (original)
+++ DBD-Pg/trunk/Changes Tue Jul 14 07:35:09 2009
@@ -1,6 +1,6 @@
('GSM' is Greg Sabino Mullane, [email protected])
-2.13.1_1
+2.13.1_2
- Make quoting of int, floats, and names much safer. (CPAN bug #41565) [GSM]
- Return ints and bools-cast-to-number from the db as true Perlish numbers.
@@ -14,7 +14,7 @@
(CPAN bug #45769) [[email protected]]
- Improve Win32 README notes [Curtis Jewell]
- Fix spelling error in type_info (CPAN bug #47786)
[[email protected]]
-
+ - Add functions to support MS VC++ 7.0 (CPAN bug #47858) [Taro Nishino]
2.13.1 Released April 23, 2009 (subversion r12713)
Modified: DBD-Pg/trunk/META.yml
==============================================================================
--- DBD-Pg/trunk/META.yml (original)
+++ DBD-Pg/trunk/META.yml Tue Jul 14 07:35:09 2009
@@ -1,6 +1,6 @@
--- #YAML:1.0
name : DBD-Pg
-version : 2.13.1_1
+version : 2.13.1_2
abstract : DBI PostgreSQL interface
author:
- Greg Sabino Mullane <[email protected]>
@@ -39,10 +39,10 @@
provides:
DBD::Pg:
file : Pg.pm
- version : 2.13.1_1
+ version : 2.13.1_2
Bundle::DBD::Pg:
file : lib/Bundle/DBD/Pg.pm
- version : 2.13.1_1
+ version : 2.13.1_2
keywords:
- Postgres
Modified: DBD-Pg/trunk/Makefile.PL
==============================================================================
--- DBD-Pg/trunk/Makefile.PL (original)
+++ DBD-Pg/trunk/Makefile.PL Tue Jul 14 07:35:09 2009
@@ -7,7 +7,7 @@
use 5.006001;
## No version.pm for this one, as the prereqs are not loaded yet.
-my $VERSION = '2.13.1_1';
+my $VERSION = '2.13.1_2';
my $lib;
BEGIN {
Modified: DBD-Pg/trunk/Pg.pm
==============================================================================
--- DBD-Pg/trunk/Pg.pm (original)
+++ DBD-Pg/trunk/Pg.pm Tue Jul 14 07:35:09 2009
@@ -17,7 +17,7 @@
{
package DBD::Pg;
- use version; our $VERSION = qv('2.13.1_1');
+ use version; our $VERSION = qv('2.13.1_2');
use DBI ();
use DynaLoader ();
@@ -1739,7 +1739,7 @@
=head1 VERSION
-This documents version 2.13.1_1 of the DBD::Pg module
+This documents version 2.13.1_2 of the DBD::Pg module
=head1 DESCRIPTION
Modified: DBD-Pg/trunk/README
==============================================================================
--- DBD-Pg/trunk/README (original)
+++ DBD-Pg/trunk/README Tue Jul 14 07:35:09 2009
@@ -3,7 +3,7 @@
===================================================
WARNING!!
-THIS IS A TEST VERSION (2.13.1_1) AND SHOULD BE USED
+THIS IS A TEST VERSION (2.13.1_2) AND SHOULD BE USED
FOR TESTING PURPOSES ONLY. PLEASE USE A STABLE
VERSION (no underscore) BY VISITING:
@@ -15,7 +15,7 @@
DESCRIPTION:
------------
-This is version 2.13.1_1 of DBD::Pg, the Perl interface to Postgres using DBI.
+This is version 2.13.1_2 of DBD::Pg, the Perl interface to Postgres using DBI.
The web site for this interface, and the latest version, can be found at:
http://search.cpan.org/dist/DBD-Pg/
Modified: DBD-Pg/trunk/SIGNATURE
==============================================================================
--- DBD-Pg/trunk/SIGNATURE (original)
+++ DBD-Pg/trunk/SIGNATURE Tue Jul 14 07:35:09 2009
@@ -15,23 +15,23 @@
Hash: RIPEMD160
SHA1 415d25a8628815a50a8f79317de4abff11ac73e8 .perlcriticrc
-SHA1 1cbcf38c2254456a568f071f092034f68ae4f8b6 Changes
+SHA1 d32cd5c7a5aa0f48e920aaae2b4a83907994332b Changes
SHA1 2321e712956f60fd30edcb57f65e14ce2fdcc37e MANIFEST
SHA1 dc863ce481b321833db84c95bbe976e8c65f296e MANIFEST.SKIP
-SHA1 37560489b2e88d042d1472755b2952ffa75e214c META.yml
-SHA1 4d5018d7a531bdd69e0858f28af474db21813d72 Makefile.PL
+SHA1 7c131f6843a6e84e4cb98581582b2d029ac45508 META.yml
+SHA1 cdc531cc4aaa2cd4ecdf6d27600f2e52b6e5e0de Makefile.PL
SHA1 23ff9a53497b927573048b7457d5eb8173d8b9b0 Pg.h
-SHA1 0e54d611ec7374ff961e459ec54392ac853c7ef5 Pg.pm
+SHA1 52646dcf4622e5a355d12b87ba8f04cf958fc6c7 Pg.pm
SHA1 4e39c717f6050aff330b22e2bc52f6f2532d21c5 Pg.xs
-SHA1 4195235aedabf83e22fb1eb7c1a1c1f400a8b6c1 README
+SHA1 9e29b2dc5dfca694f1c83d33dd7d39be43c45165 README
SHA1 71d010a5acb9178e349a0e1bdf0206fe2ea118ca README.dev
SHA1 7e213bf90f513595b59c0a2c4ef94fea1592efcf README.win32
SHA1 fe7a42afdeec6a218c45f76e875cc3324b870956 TODO
-SHA1 6608c110b4eca37eb6f37beabad04626b02590b8 dbdimp.c
+SHA1 992dfab7133d55f3f5a691b4f9b0030adc07fd16 dbdimp.c
SHA1 3852dea79080d2c3e1ed9644fbbd6d25c2151c13 dbdimp.h
SHA1 6c33bcf138e577722283bef02fceb8cbce4d100d dbivport.h
-SHA1 351b5225e7803f4ae7717ebaf600f179c1341328 lib/Bundle/DBD/Pg.pm
-SHA1 92e7dde104a0f3dc9de27a82dc17f4414455668f quote.c
+SHA1 5249b47c3a98d86caac5a08643cf07279d929a47 lib/Bundle/DBD/Pg.pm
+SHA1 a5c43257bf959d2f946a6a90722b76e4c68a153d quote.c
SHA1 54f10c6d76db2f2bfbaa7f345d7034029b88453c quote.h
SHA1 93aa7e8cae0a361d1e6163dea0281ebff41f3c5f t/00-signature.t
SHA1 073baf503a601ceeb49516d61bd275f0c1e51563 t/00basic.t
@@ -61,7 +61,7 @@
SHA1 f07cd5ecaeb854c81ceb9206364979cf607e6546 win32.mak
-----BEGIN PGP SIGNATURE-----
-iEYEAREDAAYFAkpbjaQACgkQvJuQZxSWSsgSJgCgl48JdL6GIsBGi5frPt5SZIDj
-LIoAoLAecFe2zWWxuiSAupT3cm8eeWvm
-=zCy4
+iEYEAREDAAYFAkpclk0ACgkQvJuQZxSWSsjVXwCfYMBGRFFkm9QLrk/CUfCtwUKE
+0tkAoIYdBzCBK7DPeIE/whM0/KAXkPBZ
+=p5ws
-----END PGP SIGNATURE-----
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Tue Jul 14 07:35:09 2009
@@ -15,6 +15,10 @@
#include "Pg.h"
+#if defined (_WIN32) && !defined (atoll)
+# define atoll(X) _atoi64(X)
+#endif
+
#ifndef powf
#define powf (float)pow
#endif
Modified: DBD-Pg/trunk/lib/Bundle/DBD/Pg.pm
==============================================================================
--- DBD-Pg/trunk/lib/Bundle/DBD/Pg.pm (original)
+++ DBD-Pg/trunk/lib/Bundle/DBD/Pg.pm Tue Jul 14 07:35:09 2009
@@ -4,7 +4,7 @@
use strict;
use warnings;
-$VERSION = '2.13.1_1';
+$VERSION = '2.13.1_2';
1;
Modified: DBD-Pg/trunk/quote.c
==============================================================================
--- DBD-Pg/trunk/quote.c (original)
+++ DBD-Pg/trunk/quote.c Tue Jul 14 07:35:09 2009
@@ -11,6 +11,33 @@
#include "Pg.h"
+#if defined (_WIN32) && !defined (strncasecmp)
+int
+strncasecmp(const char *s1, const char *s2, size_t n)
+{
+ while(n > 0
+ && toupper((unsigned char)*s1) == toupper((unsigned char)*s2))
+ {
+ if(*s1 == '\0')
+ return 0;
+ s1++;
+ s2++;
+ n--;
+ }
+ if(n == 0)
+ return 0;
+ return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
+}
+#endif
+
+#if defined (_WIN32) && !defined (strtof)
+float
+strtof(const char *nptr, char **endptr)
+{
+ return (float)strtod(nptr, endptr);
+}
+#endif
+
/*
The 'estring' indicates if the server is capable of using the E'' syntax
In other words, is it 8.1 or better?