Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

PostgreSQL adapter and tests incorrectly detect 'postgres' driver

#1748

The 'pg' driver supports inspecting the transaction status, but the old 'postgres' driver does not. ActiveRecord's code for detecting whether we're using 'pg' or 'postgres' is broken, causing unit test failures. This patch fixes the problem.

Reported by Hongli Lai · January 13th, 2009 @ 03:06 PM

State: committed
Milestone: none
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Pratik
    Pratik
    • Milestone cleared.
    • Assigned user set to Jeremy Kemper

    January 13th, 2009 @ 03:07 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken

    Not quite ready yet...patch makes test pass under postgres, but fail under pg.

    January 13th, 2009 @ 03:34 PM

  3. Hongli Lai
  4. CancelProfileIsBroken
    CancelProfileIsBroken
    1. Green under both pg and postgres, with PostgreSQL 8.3.5.

    January 13th, 2009 @ 03:54 PM

  5. Repository
    Repository
    • State changed from new to committed

    (from [9bcf01b23c25e640da7908ac8b1b49fbf7d2e51a]) Fix PostgreSQL unit test failures that only occur when using the old 'postgres' driver.

    [#1748 PostgreSQL adapter and tests incorrectly detect 'postgres' driver state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    January 13th, 2009 @ 11:59 PM