summaryrefslogtreecommitdiffstats
path: root/rubygem-activerecord-sqlite-api.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rubygem-activerecord-sqlite-api.patch')
-rw-r--r--rubygem-activerecord-sqlite-api.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/rubygem-activerecord-sqlite-api.patch b/rubygem-activerecord-sqlite-api.patch
new file mode 100644
index 0000000..eb9583f
--- /dev/null
+++ b/rubygem-activerecord-sqlite-api.patch
@@ -0,0 +1,25 @@
+From 6b3e7d3f9f84d53855e0af72720a923caaa58313 Mon Sep 17 00:00:00 2001
+From: Ken Dreyer <ktdreyer@ktdreyer.com>
+Date: Thu, 7 Feb 2013 21:55:51 -0700
+Subject: [PATCH] Use RHEL'6 SQLite3 Version API
+
+---
+ activerecord/test/cases/query_cache_test.rb | 2 +-
+ 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 f7f9777..77993d8 100644
+--- a/activerecord/test/cases/query_cache_test.rb
++++ b/activerecord/test/cases/query_cache_test.rb
+@@ -52,7 +52,7 @@ class QueryCacheTest < ActiveRecord::TestCase
+ require 'sqlite3/version' if current_adapter?(:SQLite3Adapter)
+
+ Task.cache do
+- if current_adapter?(:SQLite3Adapter) && SQLite3::Version::VERSION > '1.2.5'
++ if current_adapter?(:SQLite3Adapter) && SQLite3::Version::STRING > '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")
+--
+1.7.1
+