X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FYear2000CDs.pm;h=f0890a32f0e5715c46dae71b3c27eca4fd85da39;hb=f0fb90aea07b7fd664aae2002ffab51ff64457b6;hp=8b00356d7cf4a7591d3dc5955bd5cf16ca18d01f;hpb=0d9fc72b9d3914e5f6fe827397f985a36842f2a8;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Year2000CDs.pm b/t/lib/DBICTest/Schema/Year2000CDs.pm index 8b00356..f0890a3 100644 --- a/t/lib/DBICTest/Schema/Year2000CDs.pm +++ b/t/lib/DBICTest/Schema/Year2000CDs.pm @@ -1,6 +1,9 @@ package # hide from PAUSE DBICTest::Schema::Year2000CDs; +use warnings; +use strict; + use base qw/DBICTest::Schema::CD/; __PACKAGE__->table_class('DBIx::Class::ResultSource::View'); @@ -8,7 +11,7 @@ __PACKAGE__->table('year2000cds'); # need to operate on the instance for things to work __PACKAGE__->result_source_instance->view_definition( sprintf ( - 'SELECT %s FROM cd WHERE year ="2000"', + 'SELECT %s FROM cd WHERE year = "2000"', join (', ', __PACKAGE__->columns), ));