8 use Data::Query::ExprDeclare;
9 use Data::Query::ExprHelpers;
11 use DBIC::SqlMakerTest;
13 my $schema = DBICTest->init_schema();
15 $schema->source($_)->resultset_class('DBIx::Class::ResultSet::WithDQMethods')
18 my $cds = $schema->resultset('CD');
21 [ $cds->_remap_identifiers(Identifier('name')) ],
22 [ Identifier('me', 'name'), [] ],
27 [ $cds->_remap_identifiers(Identifier('artist', 'name')) ],
28 [ Identifier('artist', 'name'), [ { artist => {} } ] ],
33 [ $cds->search({}, { join => { single_track => { cd => 'artist' } } })
34 ->_remap_identifiers(Identifier('artist', 'name')) ],
35 [ Identifier('artist_2', 'name'), [ { artist => {} } ] ],
36 'Remap column on rel with re-alias'