8 my $schema = DBICTest->init_schema();
11 $schema->storage->debugcb( sub{ $queries++ } );
12 my $sdebug = $schema->storage->debug;
16 my $cd = $schema->resultset("CD")->find(1);
21 $schema->storage->debug(1);
25 is($queries, 1, 'liner_notes (might_have) not prefetched - do not load
26 liner_notes on update');
28 $schema->storage->debug($sdebug);
31 my $cd2 = $schema->resultset("CD")->find(2, {prefetch => 'liner_notes'});
36 $schema->storage->debug(1);
40 is($queries, 1, 'liner_notes (might_have) prefetched - do not load
41 liner_notes on update');
43 $schema->storage->debug($sdebug);