#105 psycopg2 - autocommit

closed-accepted
Oleg Broytman
None
5
2011-07-14
2011-07-14
El_Queen
No

Recently psycopg2 has added a new autcommit attribute (bool type). SQLObject raises an exception trying to call the autocommit function in pgconnection.py. This patch catch the exception and set autocommit the correct value if so, so it's backward compatible.

Discussion

  • El_Queen
    El_Queen
    2011-07-14

    sqlobject/postgres/pgconnection.py patch

     
    Attachments
  • Oleg Broytman
    Oleg Broytman
    2011-07-14

    • assigned_to: nobody --> phd
    • status: open --> closed-accepted
     
  • Oleg Broytman
    Oleg Broytman
    2011-07-14

    Applied, refactored and committed in the revision 4428 in the trunk. Will be in the next release. Thank you very much!