Permalink
Browse files

fix test error when running with postgresql.

This Sqlite3 should be in if block.
Was giving error because sqlite3 is not loaded
  • Loading branch information...
arunagw committed Sep 18, 2011
1 parent 51bef9d commit d589d9f16045e535d5cefc5ae34b5d4340c17d80
Showing with 4 additions and 2 deletions.
  1. +4 −2 activerecord/test/cases/query_cache_test.rb
@@ -147,8 +147,10 @@ def test_cache_is_flat
end
def test_cache_does_not_wrap_string_results_in_arrays
- require 'sqlite3/version' if current_adapter?(:SQLite3Adapter)
- sqlite3_version = RUBY_PLATFORM =~ /java/ ? Jdbc::SQLite3::VERSION : SQLite3::VERSION
+ if current_adapter?(:SQLite3Adapter)
+ require 'sqlite3/version'
+ sqlite3_version = RUBY_PLATFORM =~ /java/ ? Jdbc::SQLite3::VERSION : SQLite3::VERSION
+ end
Task.cache do
# Oracle adapter returns count() as Fixnum or Float

0 comments on commit d589d9f

Please sign in to comment.