implemented _collapse_result and _merge_result
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CustomSql.pm
1 package # hide from PAUSE 
2     DBICTest::Schema::CustomSql;
3
4 use base qw/DBICTest::Schema::Artist/;
5
6 __PACKAGE__->table('dummy');
7
8 __PACKAGE__->result_source_instance->name(\<<SQL);
9   ( SELECT a.*, cd.cdid AS cdid, cd.title AS title, cd.year AS year 
10   FROM artist a
11   JOIN cd ON cd.artist = a.artistid
12   WHERE cd.year = ?)
13 SQL
14
15 sub sqlt_deploy_hook { $_[1]->schema->drop_table($_[1]) }
16
17 1;