File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
lib/DBIx/Class/Storage/DBI/Sybase Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ teejay: Aaron Trevena <teejay@cpan.org>
200
200
theorbtwo: James Mastros <james@mastros.biz>
201
201
Thomas Kratz <tomk@cpan.org>
202
202
timbunce: Tim Bunce <tim.bunce@pobox.com>
203
+ tinita: Tina Mueller <cpan2@tinita.de>
203
204
Todd Lipcon
204
205
Tom Hukins <tom@eborcom.com>
205
206
tommy: Tommy Butler <tbutler.cpan.org@internetalias.net>
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ Revision history for DBIx::Class
25
25
- Fix t/52leaks.t failures on compilerless systems (RT#104429)
26
26
- Fix t/storage/quote_names.t failures on systems with specified Oracle
27
27
test credentials while missing the optional Math::Base36
28
+ - Fix the Sybase ASE storage incorrectly attempting to retrieve an
29
+ autoinc value when inserting rows containing blobs (GH#82)
28
30
- Fix test failures when DBICTEST_SYBASE_DSN is set (unnoticed change
29
31
in error message wording during 0.082800 and a bogus test)
30
32
Original file line number Diff line number Diff line change @@ -763,6 +763,11 @@ sub _insert_blobs {
763
763
$self -> throw_exception(' Cannot update TEXT/IMAGE column(s) without primary key values' )
764
764
if grep { ! defined $row_data -> {$_ } } @primary_cols ;
765
765
766
+ # if we are 2-phase inserting a blob - there is nothing to retrieve anymore,
767
+ # regardless of the previous state of the flag
768
+ local $self -> {_perform_autoinc_retrieval }
769
+ if $self -> _perform_autoinc_retrieval;
770
+
766
771
my %where = map {( $_ => $row_data -> {$_ } )} @primary_cols ;
767
772
768
773
for my $col (keys %$blob_cols ) {
Original file line number Diff line number Diff line change 501
501
$rs -> update({ blob => undef });
502
502
is((grep !defined ($_ -> blob), $rs -> all), 2);
503
503
} ' blob update to NULL' ;
504
+
505
+ lives_ok {
506
+ $schema -> txn_do(sub {
507
+ my $created = $rs -> create( { clob => " some text" } );
508
+ });
509
+ } ' insert blob field in transaction' ;
510
+ $ping_count -- if $@ ; # failure retry triggers a ping
504
511
}
505
512
506
513
# test MONEY column support (and some other misc. stuff)
You can’t perform that action at this time.
0 commit comments