summaryrefslogtreecommitdiffstats
path: root/activerecord-2.3.8-sqlite3-compat.patch
blob: 3ac2c9d98327237f4a6dd38c5de8e25ea05052b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- activerecord-2.3.8/test/cases/query_cache_test.rb.orig	2010-06-29 14:39:50.000000000 -0400
+++ activerecord-2.3.8/test/cases/query_cache_test.rb	2010-06-29 14:39:57.000000000 -0400
@@ -52,7 +52,7 @@ class QueryCacheTest < ActiveRecord::Tes
     require 'sqlite3/version' if current_adapter?(:SQLite3Adapter)
 
     Task.cache do
-      if current_adapter?(:SQLite3Adapter) && SQLite3::Version::VERSION > '1.2.5'
+      if current_adapter?(:SQLite3Adapter) && defined?(SQLite3::Version::VERSION) && SQLite3::Version::VERSION > '1.2.5'
         assert_instance_of Fixnum, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")
       else
         assert_instance_of String, Task.connection.select_value("SELECT count(*) AS count_all FROM tasks")