From: Rafael Kitover Date: Thu, 18 Jun 2009 23:46:56 +0000 (+0000) Subject: added connect_call_blob_setup for Sybase X-Git-Tag: v0.08112~14^2~125 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63d46bb3853faf51e05d39311c87b6aa7e44110d;p=dbsrgits%2FDBIx-Class.git added connect_call_blob_setup for Sybase --- diff --git a/lib/DBIx/Class/Storage/DBI/Sybase.pm b/lib/DBIx/Class/Storage/DBI/Sybase.pm index f8b5004..9cfc047 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase.pm @@ -30,6 +30,7 @@ sub _rebless { $self->_rebless; } $self->connect_call_datetime_setup; + $self->connect_call_blob_setup; } } } @@ -38,9 +39,27 @@ sub _populate_dbh { my $self = shift; $self->next::method(@_); $self->connect_call_datetime_setup; + $self->connect_call_blob_setup; 1; } +=head2 connect_call_blob_setup + +Used as: + + on_connect_call => 'blob_setup' + +Does C<< $dbh->{syb_binary_images} = 1; >> to return C data as raw binary +instead of as a hex string. + +=cut + +sub connect_call_blob_setup { + my $self = shift; + my $dbh = $self->_dbh; + $dbh->{syb_binary_images} = 1; +} + { my $old_dbd_warned = 0; @@ -148,6 +167,11 @@ But your queries will be cached. See L to setup date formats for L. +=head1 IMAGE COLUMNS + +See L for a L +setting you need to work with C columns. + =head1 AUTHORS See L.