Browse files

Merge pull request #6709 from amatsuda/sqlite3_version_is_always_gt_125

current AR::ConnectionAdapters::SQLite3Adapter supports only SQLite3 ~> 1.3.6
  • Loading branch information...
2 parents c53ff33 + 998ef50 commit 2d1ca38774078d01f160b1a6e807d093f348747f @rafaelfranca rafaelfranca committed Jun 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/query_cache_test.rb
View
2 activerecord/test/cases/query_cache_test.rb
@@ -160,7 +160,7 @@ def test_cache_does_not_wrap_string_results_in_arrays
# 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")

0 comments on commit 2d1ca38

Please sign in to comment.