Added quote char test, supported quoting in S::A subclass for joins
[dbsrgits/DBIx-Class.git] / t / 19quotes.t
1 use strict;
2 use Test::More;
3 use IO::File;
4
5 BEGIN {
6     eval "use DBD::SQLite";
7     plan $@
8         ? ( skip_all => 'needs DBD::SQLite for testing' )
9         : ( tests => 2 );
10 }
11
12 use lib qw(t/lib);
13
14 use_ok('DBICTest');
15
16 DBICTest::_db->storage->sql_maker->{'quote_char'} = q!'!;
17 DBICTest::_db->storage->sql_maker->{'name_sep'} = '.';
18
19 my $rs = DBICTest::CD->search(
20            { 'year' => 2001, 'artist.name' => 'Caterwauler McCrae' },
21            { join => 'artist' });
22
23 cmp_ok( $rs->count, '==', 1, "join with fields quoted");
24