diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-14 16:21:45 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-14 16:21:45 -0700 |
commit | 660768f57cc1fd6e66a1f675b774f782e431cf13 (patch) | |
tree | 082a63ced088af59476609e6ef2942a26671dabc /test | |
parent | 777b4b1288698d0e94210b9590a67c8fe722afe1 (diff) | |
parent | 7cb1044343d474d9174459e9176f144d2b776eec (diff) | |
download | rails-660768f57cc1fd6e66a1f675b774f782e431cf13.tar.gz rails-660768f57cc1fd6e66a1f675b774f782e431cf13.tar.bz2 rails-660768f57cc1fd6e66a1f675b774f782e431cf13.zip |
Merge pull request #106 from jhollinger/informix_joins
Patch Informix Visitor so that it includes joins
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_informix.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/visitors/test_informix.rb b/test/visitors/test_informix.rb index 67b02e0a64..90bbf5c104 100644 --- a/test/visitors/test_informix.rb +++ b/test/visitors/test_informix.rb @@ -37,6 +37,16 @@ module Arel sql.must_be_like "SELECT SKIP 1 LIMIT 1" end + it 'uses INNER JOIN to perform joins' do + core = Nodes::SelectCore.new + table = Table.new(:posts) + core.source = Nodes::JoinSource.new(table, [table.create_join(Table.new(:comments))]) + + stmt = Nodes::SelectStatement.new([core]) + sql = @visitor.accept(stmt) + sql.must_be_like 'SELECT FROM "posts" INNER JOIN "comments"' + end + end end end |