X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F100populate.t;h=7f824f28d456897f60fc5b0baf64239a4dfc39f9;hb=951a5760ebd3f4909a08ebdde89e5f860514094a;hp=82902dcea0a4592b1a37d07d069c0aa3a63b8f11;hpb=ec65fc3bf707fb8213fcdb4cad3a4d331515bc81;p=dbsrgits%2FDBIx-Class.git diff --git a/t/100populate.t b/t/100populate.t index 82902dc..7f824f2 100644 --- a/t/100populate.t +++ b/t/100populate.t @@ -447,14 +447,9 @@ lives_ok ( sub { done_testing; -my $q = $schema->resultset('Artist') - ->search({ - }, - { - columns => [qw/name rank/] - })->as_query; +my $q = $schema->resultset('Artist')->search({}, { columns => [qw/name rank/] })->as_query; #p $q; #diag Dumper($q); #p $schema->resultset('Artist')->result_source; #p Dumper $q; -$schema->storage->insert_bulk($schema->resultset('Artist')->result_source, [qw/name rank/], $q); +$schema->storage->insert_bulk($schema->resultset('Artist')->result_source, [qw/name rank/], [$q]);