aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/test_case.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-22 05:22:02 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-22 10:26:51 +0900
commit484a0fd7fce189655b006ec6ba0d193a97c030cb (patch)
tree1dc194db823928872529f612ec58968188bfd759 /activerecord/lib/active_record/test_case.rb
parente56c80a172dbb5e1627e1122b6f4b87f5e880dd1 (diff)
downloadrails-484a0fd7fce189655b006ec6ba0d193a97c030cb.tar.gz
rails-484a0fd7fce189655b006ec6ba0d193a97c030cb.tar.bz2
rails-484a0fd7fce189655b006ec6ba0d193a97c030cb.zip
Just ignore all PRAGMA queries
Diffstat (limited to 'activerecord/lib/active_record/test_case.rb')
-rw-r--r--activerecord/lib/active_record/test_case.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/test_case.rb b/activerecord/lib/active_record/test_case.rb
index dee8bc12ae..e9142481a3 100644
--- a/activerecord/lib/active_record/test_case.rb
+++ b/activerecord/lib/active_record/test_case.rb
@@ -60,7 +60,7 @@ module ActiveRecord
self.clear_log
- self.ignored_sql = [/^PRAGMA (?!(table_info))/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/, /^SAVEPOINT/, /^ROLLBACK TO SAVEPOINT/, /^RELEASE SAVEPOINT/, /^SHOW max_identifier_length/, /^BEGIN/, /^COMMIT/]
+ self.ignored_sql = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/, /^SAVEPOINT/, /^ROLLBACK TO SAVEPOINT/, /^RELEASE SAVEPOINT/, /^SHOW max_identifier_length/, /^BEGIN/, /^COMMIT/]
# FIXME: this needs to be refactored so specific database can add their own
# ignored SQL, or better yet, use a different notification for the queries