Skip to content
This repository
Browse code

Fix assert_queries failures by ignoring savepoint sql.

  • Loading branch information...
commit 3f4a8b6d0a6c1ddab417b8d19affdc1e9f9209ba 1 parent b1b204a
Jonathan Viney authored August 31, 2008 FooBarWidget committed November 03, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  activerecord/test/cases/helper.rb
2  activerecord/test/cases/helper.rb
@@ -31,7 +31,7 @@ def uses_mocha(description)
31 31
 end
32 32
 
33 33
 ActiveRecord::Base.connection.class.class_eval do
34  
-  IGNORED_SQL = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/]
  34
+  IGNORED_SQL = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/, /^SAVEPOINT/, /^ROLLBACK TO SAVEPOINT/, /^RELEASE SAVEPOINT/]
35 35
 
36 36
   def execute_with_query_record(sql, name = nil, &block)
37 37
     $queries_executed ||= []

0 notes on commit 3f4a8b6

Please sign in to comment.
Something went wrong with that request. Please try again.