[Dbix-class] patch for the tests which shows that prefetch isn't working for might_have

Hartmaier Alexander Alexander.Hartmaier at t-systems.at
Wed Oct 19 17:32:51 CEST 2005


For Matt.

;-)

Sorry Andy, your mad hack of parsing the trace file now fails. *CHCH*

*snip*
Index: t/run/16joins.tl
===================================================================
--- t/run/16joins.tl    (Revision 243)
+++ t/run/16joins.tl    (Arbeitskopie)
@@ -6,7 +6,7 @@
     eval "use DBD::SQLite";
     plan $@
         ? ( skip_all => 'needs DBD::SQLite for testing' )
-        : ( tests => 22 );
+        : ( tests => 23 );
 }

 # test the abstract join => SQL generator
@@ -123,6 +123,8 @@

 is($cd[2]->{_inflated_column}{artist}->name, 'Caterwauler McCrae', 'Prefetch 
on parent object ok');

+is($cd[2]->liner_notes, undef, 'might_have returns nothing -> ok');
+
 # count the SELECTs
 DBI->trace(0);
 my $selects = 0;
*snip*

With best regards
Alexander Hartmaier

T-Systems Austria GesmbH
Rennweg 97-99
A-1030 Vienna

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5544 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20051019/7a462426/smime.bin


More information about the Dbix-class mailing list