Permalink
Browse files

AR: fixed postgres transaction tests [#4519 state:commited]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent a61a6d2 commit 8b1b273c21a2f1a6eeccca5fbe0303679c2d707d @e2 e2 committed with jeremy May 1, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -490,12 +490,8 @@ def rollback_db_transaction
execute "ROLLBACK"
end
- if defined?(PGconn::PQTRANS_IDLE)
- # The ruby-pg driver supports inspecting the transaction status,
- # while the ruby-postgres driver does not.
- def outside_transaction?
- @connection.transaction_status == PGconn::PQTRANS_IDLE
- end
+ def outside_transaction?
+ @connection.transaction_status == PGconn::PQTRANS_IDLE
end
def create_savepoint

0 comments on commit 8b1b273

Please sign in to comment.