Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid race condition with unprepared_statement #36871

Closed
wants to merge 1 commit into from

Commits on Aug 6, 2019

  1. Avoid race condition with unprepared statement

    In system tests, a single database connection is shared among all
    the server threads. A call to unprepared_statement temporarily
    modifies an instance variable on the connection object, which is
    then visible to other concurrently running threads. This leads to
    a situation where prepared statements may end up with the wrong
    binds.
    
    Addresses rails#36763
    97jaz committed Aug 6, 2019
    Configuration menu
    Copy the full SHA
    6e3f84b View commit details
    Browse the repository at this point in the history