map blob to PG_BYTEA on DBD::Pg
Yuval Kogman [Mon, 22 Dec 2008 16:43:50 +0000 (16:43 +0000)]
lib/DBIx/Class/Storage/DBI/Pg.pm

index 937edfb..5fcaa17 100644 (file)
@@ -70,6 +70,7 @@ sub bind_attribute_by_data_type {
 
   my $bind_attributes = {
     bytea => { pg_type => DBD::Pg::PG_BYTEA },
+    blob  => { pg_type => DBD::Pg::PG_BYTEA },
   };
  
   if( defined $bind_attributes->{$data_type} ) {