# 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),
));
--- Created on Tue Aug 25 12:34:34 2009
+--
+-- Created by SQL::Translator::Producer::SQLite
+-- Created on Sun Nov 15 14:13:02 2009
--
-- 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;