Author: turnstep
Date: Wed Dec 19 08:52:14 2007
New Revision: 10440

Modified:
   DBD-Pg/trunk/Pg.pm

Log:
Fix bad PG_INTGER example in docs, thanks to Xavi Drudis Ferran.
Bug 31545.


Modified: DBD-Pg/trunk/Pg.pm
==============================================================================
--- DBD-Pg/trunk/Pg.pm  (original)
+++ DBD-Pg/trunk/Pg.pm  Wed Dec 19 08:52:14 2007
@@ -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 => PG_INTEGER });
+  $sth->bind_param("$1", 234, { pg_type => SQL_INT4 });
 
   ## 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