theorbtwo: James Mastros <james@mastros.biz>
Thomas Kratz <tomk@cpan.org>
timbunce: Tim Bunce <tim.bunce@pobox.com>
+tinita: Tina Mueller <cpan2@tinita.de>
Todd Lipcon
Tom Hukins <tom@eborcom.com>
tommy: Tommy Butler <tbutler.cpan.org@internetalias.net>
- Fix t/52leaks.t failures on compilerless systems (RT#104429)
- Fix t/storage/quote_names.t failures on systems with specified Oracle
test credentials while missing the optional Math::Base36
+ - Fix the Sybase ASE storage incorrectly attempting to retrieve an
+ autoinc value when inserting rows containing blobs (GH#82)
- Fix test failures when DBICTEST_SYBASE_DSN is set (unnoticed change
in error message wording during 0.082800 and a bogus test)
$self->throw_exception('Cannot update TEXT/IMAGE column(s) without primary key values')
if grep { ! defined $row_data->{$_} } @primary_cols;
+ # if we are 2-phase inserting a blob - there is nothing to retrieve anymore,
+ # regardless of the previous state of the flag
+ local $self->{_perform_autoinc_retrieval}
+ if $self->_perform_autoinc_retrieval;
+
my %where = map {( $_ => $row_data->{$_} )} @primary_cols;
for my $col (keys %$blob_cols) {
$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 $@; # failure retry triggers a ping
}
# test MONEY column support (and some other misc. stuff)