From: Peter Rabbitson Date: Sun, 15 Nov 2009 13:17:23 +0000 (+0000) Subject: Fix non-sqlt schema file X-Git-Tag: v0.08116~140^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=243e940ede77f0e65f3e014bc05efcfdb8aa848b;p=dbsrgits%2FDBIx-Class.git Fix non-sqlt schema file --- diff --git a/t/lib/DBICTest/Schema/Year2000CDs.pm b/t/lib/DBICTest/Schema/Year2000CDs.pm index 8b00356..2fc30aa 100644 --- a/t/lib/DBICTest/Schema/Year2000CDs.pm +++ b/t/lib/DBICTest/Schema/Year2000CDs.pm @@ -8,7 +8,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), )); diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index 888ccd0..cfb4e33 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,4 +1,6 @@ --- Created on Tue Aug 25 12:34:34 2009 +-- +-- Created by SQL::Translator::Producer::SQLite +-- Created on Sun Nov 15 14:13:02 2009 -- @@ -451,6 +453,6 @@ CREATE INDEX fourkeys_to_twokeys_idx_t_artist_t_cd ON fourkeys_to_twokeys (t_art -- View: year2000cds -- CREATE VIEW year2000cds AS - SELECT cdid, artist, title FROM cd WHERE year ='2000'; + SELECT cdid, artist, title, year, genreid, single_track FROM cd WHERE year = "2000"; COMMIT;