Skip to content
  • Sean Griffin's avatar
    1ca6f7f7
    Do not attempt to return connection with open transaction to pool (#24610) · 1ca6f7f7
    Sean Griffin authored
    When the query cache completes, if Active Record is still inside of a
    transaction, it is because the transaction is meant to be left open
    above this unit of work (such as transactional fixtures in tests). There
    were several tests around the behavior of "tests" that were invalid, as
    tests are not run through the executor. They have been changed to
    reflect the new behavior, which is closer to what actually occurs in
    Rails tests.
    
    Fixes #23989
    Fixes #24491
    Close #24500
    1ca6f7f7
    Do not attempt to return connection with open transaction to pool (#24610)
    Sean Griffin authored
    When the query cache completes, if Active Record is still inside of a
    transaction, it is because the transaction is meant to be left open
    above this unit of work (such as transactional fixtures in tests). There
    were several tests around the behavior of "tests" that were invalid, as
    tests are not run through the executor. They have been changed to
    reflect the new behavior, which is closer to what actually occurs in
    Rails tests.
    
    Fixes #23989
    Fixes #24491
    Close #24500
Loading