diff --git a/AUTHORS b/AUTHORS index 90f30335b..240de2247 100644 --- a/AUTHORS +++ b/AUTHORS @@ -199,6 +199,7 @@ teejay: Aaron Trevena theorbtwo: James Mastros Thomas Kratz timbunce: Tim Bunce +tinita: Tina Mueller Todd Lipcon Tom Hukins tommy: Tommy Butler diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm b/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm index fcbd0a713..3b493c980 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm @@ -791,6 +791,9 @@ sub _insert_blobs { $self->throw_exception('Cannot update TEXT/IMAGE column(s) without primary key values') if ((grep { defined $row{$_} } @primary_cols) != @primary_cols); + # do not perform identity retrieval on blob inserts + local $self->{_perform_autoinc_retrieval} = undef; + for my $col (keys %$blob_cols) { my $blob = $blob_cols->{$col}; diff --git a/t/746sybase.t b/t/746sybase.t index d4588c52e..4f1c2cdd0 100644 --- a/t/746sybase.t +++ b/t/746sybase.t @@ -490,6 +490,14 @@ SQL $rs->update({ blob => undef }); is((grep !defined($_->blob), $rs->all), 2); } 'blob update to NULL'; + + lives_ok { + $schema->txn_do(sub { + my $created = $rs->create( { clob => "some text" } ); + }); + } 'insert blob field in transaction'; + $ping_count-- if $@; # dbh_do calls ->connected + } # test MONEY column support (and some other misc. stuff)