Author: turnstep
Date: Sun Jan  6 10:49:16 2008
New Revision: 10480

Modified:
   DBD-Pg/trunk/Changes
   DBD-Pg/trunk/Pg.pm

Log:
Fix SQL_INTEGER the correct way this time, update Changes file.


Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes        (original)
+++ DBD-Pg/trunk/Changes        Sun Jan  6 10:49:16 2008
@@ -1,6 +1,10 @@
 ('GSM' is Greg Sabino Mullane, [EMAIL PROTECTED])
 
 2.0.0
+       - Fix crash when executing query with two placeholders side by side.
+      Thanks to Daniel Browning for spotting this. [GSM]
+       - Fix bad PG_INTEGER example in docs, thanks to Xavi Drudis Ferran.
+               (CPAN bug #31545) [GSM]
        - Force SQL_REAL and SQL_NUMERIC to be float8 not float4.
                (CPAN bug #30010) [GSM]
        - Fix memory leak when using savepoints. (CPAN bug #29791)

Modified: DBD-Pg/trunk/Pg.pm
==============================================================================
--- DBD-Pg/trunk/Pg.pm  (original)
+++ DBD-Pg/trunk/Pg.pm  Sun Jan  6 10:49:16 2008
@@ -2863,7 +2863,7 @@
   $sth->bind_param("$2", "Zool");
 
   ## We realize that the wrong data type was set above, so we change it:
-  $sth->bind_param("$1", 234, { pg_type => SQL_INT4 });
+  $sth->bind_param("$1", 234, { pg_type => SQL_INTEGER });
 
   ## We also got the wrong value, so we change that as well.
   ## Because the data type is sticky, we don't need to change it

Reply via email to