Remove unused test
[dbsrgits/SQL-Abstract-2.0-ish.git] / t / 200_join.t
CommitLineData
704c5138 1use strict;
2use warnings;
3
cbcfedc1 4use Test::More tests => 3;
704c5138 5use Test::Differences;
6
7use_ok('SQL::Abstract') or BAIL_OUT( "$@" );
8
9my $sqla = SQL::Abstract->create(1);
10
11is $sqla->dispatch(
cbcfedc1 12 { -type => 'join',
13 tablespec => [-name => qw/foo/],
14 on => [ '==', [-name => qw/foo id/], [ -name => qw/me foo_id/ ] ],
15 }
704c5138 16), "JOIN foo ON (foo.id = me.foo_id)",
17 "simple join clause";
18
cbcfedc1 19is $sqla->dispatch(
20 { -type => 'join',
21 tablespec => [-alias => [-name => qw/foo/], 'bar' ],
22 using => [ -name => qw/foo_id/ ]
23 }
24), "JOIN foo AS bar USING (foo_id)",
25 "using join clause";