[Bast-commits] r6109 - DBIx-Class/0.08/trunk/t/resultset
plu at dev.catalyst.perl.org
plu at dev.catalyst.perl.org
Sat May 2 19:11:41 GMT 2009
Author: plu
Date: 2009-05-02 19:11:40 +0000 (Sat, 02 May 2009)
New Revision: 6109
Modified:
DBIx-Class/0.08/trunk/t/resultset/as_query.t
Log:
Failing testcase for using subselect (as_query)
Modified: DBIx-Class/0.08/trunk/t/resultset/as_query.t
===================================================================
--- DBIx-Class/0.08/trunk/t/resultset/as_query.t 2009-05-02 08:42:03 UTC (rev 6108)
+++ DBIx-Class/0.08/trunk/t/resultset/as_query.t 2009-05-02 19:11:40 UTC (rev 6109)
@@ -7,7 +7,7 @@
use Test::More;
-plan ( tests => 4 );
+plan ( tests => 5 );
use lib qw(t/lib);
use DBICTest;
@@ -66,4 +66,13 @@
);
}
+{
+ my $rs = $schema->resultset("CD")->search(
+ { 'artist.name' => 'Caterwauler McCrae' },
+ { join => [qw/artist/]}
+ );
+ my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $rs->get_column('cdid')->as_query } } );
+ cmp_ok($subsel_rs->count, '==', $rs->count, 'Subselect on PK got the same row count');
+}
+
__END__
More information about the Bast-commits
mailing list