Skip to content

Several patches including 1205 deadlock victim retry logic, fixes for auto-reconnect, ensure finish statement handles #31

@jrafanie

Description

@jrafanie

We have implemented several patches on top of 2_3_4 against rails and activerecord 2.2.2

see http://github.com/jrafanie/2000-2005-adapter/commits/2_3_4_patches

Here's a summary:

1205 "deadlock victim" retry logic at the transaction and single query level. Don't try to rollback the transaction on a 1205 since SQL server does this and just complains about a "rollback" without a "begin".

Convenience methods: spid, database version, product version, product level, product edition,

Apply lock timeout and transaction isolation level to a connection on initialize and reconnect

Don't auto-reconnect on commits, rollback, and in the middle of a transaction.

Ensure we finish the statement handles in a few places.

Of special note, the log method and transaction method both come from 2.2.2 and were modified to handle the 1205 deadlock victim errors. It appears that the transaction method has undergone many changes from 2.2.2 to 2.3.2. Oh well. We can work to get it into the mainstream adapter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions