mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
current AR::ConnectionAdapters::SQLite3Adapter supports only SQLite3 ~> 1.3.6
This commit is contained in:
parent
2eb4ebe308
commit
998ef50ef1
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue