[Jifty-commit] r2766 - in Jifty-DBI/trunk: lib/Jifty/DBI/Handle

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Feb 8 14:16:39 EST 2007


Author: falcone
Date: Thu Feb  8 14:16:33 2007
New Revision: 2766

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm

Log:
 r16656 at ketch:  falcone | 2007-02-08 14:15:52 -0500
 * bytea columns also need to be flagged with DBD::Pg::PG_BYTEA when binding params


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm	Thu Feb  8 14:16:33 2007
@@ -125,7 +125,7 @@
     my $type = shift;
 
     # Don't assign to key 'value' as it is defined later.
-    return ( { pg_type => DBD::Pg::PG_BYTEA() } ) if $type eq "blob";
+    return ( { pg_type => DBD::Pg::PG_BYTEA() } ) if $type =~ /^(?:blob|bytea)$/;
     return ( {} );
 }
 


More information about the Jifty-commit mailing list