X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F71mysql.t;h=0526dd8c6653f40cbd82d810f7cebc3df3f9d668;hb=d5dedbd62928f65a9071b4d9b6d56c6b663a073b;hp=755bbf60aa7a9540e5786c5cedee8bb4445c8d1b;hpb=b8391c875ed35fd7c5c20aed6dcae724d9366a56;p=dbsrgits%2FDBIx-Class.git diff --git a/t/71mysql.t b/t/71mysql.t index 755bbf6..0526dd8 100644 --- a/t/71mysql.t +++ b/t/71mysql.t @@ -250,7 +250,11 @@ NULLINSEARCH: { # check for proper grouped counts { - my $ansi_schema = DBICTest::Schema->connect ($dsn, $user, $pass, { on_connect_call => 'set_strict_mode' }); + my $ansi_schema = DBICTest::Schema->connect ($dsn, $user, $pass, { + on_connect_call => 'set_strict_mode', + quote_char => '`', + name_sep => '.' + }); my $rs = $ansi_schema->resultset('CD'); my $years; @@ -263,6 +267,14 @@ NULLINSEARCH: { 'grouped count correct', ); }, 'Grouped count does not throw'); + + lives_ok( sub { + $ansi_schema->resultset('Owners')->search({}, { + join => 'books', group_by => [ 'me.id', 'books.id' ] + })->count(); + }, 'count on grouped columns with the same name does not throw'); + + } ZEROINSEARCH: { @@ -320,6 +332,6 @@ ZEROINSEARCH: { my $schema2 = DBICTest::Schema->connect($dsn, $user, $pass); $schema2->resultset("Artist")->find(4); -isa_ok($schema2->storage->sql_maker, 'DBIx::Class::SQLAHacks::MySQL'); +isa_ok($schema2->storage->sql_maker, 'DBIx::Class::SQLMaker::MySQL'); done_testing;