Skip to content

Commit

Permalink
supports_fetch_first_n_rows_and_offset? returns false when `use_o…
Browse files Browse the repository at this point in the history
…ld_oracle_visitor` is true
  • Loading branch information
yahonda committed Dec 1, 2016
1 parent e913907 commit d3f2e75
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -443,7 +443,7 @@ def adapter_name #:nodoc:
end

def arel_visitor # :nodoc:
if supports_fetch_first_n_rows_and_offset? && !use_old_oracle_visitor
if supports_fetch_first_n_rows_and_offset?
Arel::Visitors::Oracle12.new(self)
else
Arel::Visitors::Oracle.new(self)
Expand Down Expand Up @@ -475,7 +475,7 @@ def supports_views?
end

def supports_fetch_first_n_rows_and_offset?
if @connection.database_version == [12,1]
if !use_old_oracle_visitor && @connection.database_version == [12,1]
true
else
false
Expand Down

0 comments on commit d3f2e75

Please sign in to comment.