Changeset 886 for trunk/pg.py


Ignore:
Timestamp:
Sep 8, 2016, 12:04:53 PM (3 years ago)
Author:
cito
Message:

Fix infinite recursion issue

The getattr method assumes that the "db" attribute is always set
(either to None or to the underlying connection). We ensure this
by setting the class attribute "db" to None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pg.py

    r883 r886  
    13581358class DB:
    13591359    """Wrapper class for the _pg connection type."""
     1360
     1361    db = None  # invalid fallback for underlying connection
    13601362
    13611363    def __init__(self, *args, **kw):
Note: See TracChangeset for help on using the changeset viewer.