# disable BLOB mega-output
my $orig_debug = $schema->storage->debug;
- $schema->storage->debug (0);
local $TODO = 'Something is confusing column bindtype assignment when quotes are active'
. ': https://rt.cpan.org/Ticket/Display.html?id=64206'
foreach my $size (qw( small large )) {
$id++;
+ if ($size eq 'small') {
+ $schema->storage->debug($orig_debug);
+ }
+ elsif ($size eq 'large') {
+ $schema->storage->debug(0);
+ }
+
my $str = $binstr{$size};
lives_ok {
$rs->create( { 'id' => $id, blob => "blob:$str", clob => "clob:$str" } )
is (@objs, 1, 'One row found matching on both LOBs as a subquery');
lives_ok {
- $rs->search({ blob => "blob:$str", clob => "clob:$str" })
+ $rs->search({ id => $id, blob => "blob:$str", clob => "clob:$str" })
->update({ blob => 'updated blob', clob => 'updated clob' });
} 'blob UPDATE with WHERE clause survived';