aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-21 14:47:44 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-21 14:47:44 -0700
commit2767d4a7877a88ae50546530a630dded95ccc396 (patch)
treedcc90ddcfdc6a3230e092e86dd4ed77b4f417eb3 /test
parentb64c886483e3ad2dc92bf54510cd481f9124fb69 (diff)
parent51f5bece0867316d035d5d8eeb3a2eb44cf89ad1 (diff)
downloadrails-2767d4a7877a88ae50546530a630dded95ccc396.tar.gz
rails-2767d4a7877a88ae50546530a630dded95ccc396.tar.bz2
rails-2767d4a7877a88ae50546530a630dded95ccc396.zip
Merge pull request #211 from yahonda/support_columns_for_distinct_oracle
Support `columns_for_distinct` with Oracle adapter
Diffstat (limited to 'test')
-rw-r--r--test/visitors/test_oracle.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/visitors/test_oracle.rb b/test/visitors/test_oracle.rb
index 421e9951e6..bd22822bca 100644
--- a/test/visitors/test_oracle.rb
+++ b/test/visitors/test_oracle.rb
@@ -85,7 +85,8 @@ module Arel
it 'creates a subquery when there is DISTINCT' do
stmt = Nodes::SelectStatement.new
- stmt.cores.first.projections << Nodes::SqlLiteral.new('DISTINCT id')
+ stmt.cores.first.set_quantifier = Arel::Nodes::Distinct.new
+ stmt.cores.first.projections << Nodes::SqlLiteral.new('id')
stmt.limit = Arel::Nodes::Limit.new(10)
sql = @visitor.accept stmt
sql.must_be_like %{