aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-06-12 04:50:30 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-06-12 04:54:48 +0900
commit998ef50ef100ee02ac3f9fbfcfa5882ac5d44f08 (patch)
tree9ee77c0e178af99203517fe321d4221f3a0c05bf
parent2eb4ebe308a027b1a0a64e9b0bf24d8e225590a4 (diff)
downloadrails-998ef50ef100ee02ac3f9fbfcfa5882ac5d44f08.tar.gz
rails-998ef50ef100ee02ac3f9fbfcfa5882ac5d44f08.tar.bz2
rails-998ef50ef100ee02ac3f9fbfcfa5882ac5d44f08.zip
current AR::ConnectionAdapters::SQLite3Adapter supports only SQLite3 ~> 1.3.6
-rw-r--r--activerecord/test/cases/query_cache_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb
index a712e5f689..f36e879305 100644
--- a/activerecord/test/cases/query_cache_test.rb
+++ b/activerecord/test/cases/query_cache_test.rb
@@ -160,7 +160,7 @@ class QueryCacheTest < ActiveRecord::TestCase
# Oracle adapter returns count() as Fixnum or Float
if current_adapter?(:OracleAdapter)
assert_kind_of Numeric, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
- elsif current_adapter?(:SQLite3Adapter) && sqlite3_version > '1.2.5' || current_adapter?(:Mysql2Adapter) || current_adapter?(:MysqlAdapter)
+ elsif current_adapter?(:SQLite3Adapter) || current_adapter?(:Mysql2Adapter) || current_adapter?(:MysqlAdapter)
# Future versions of the sqlite3 adapter will return numeric
assert_instance_of Fixnum,
Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")