1. Marc Abramowitz
  2. sqlalchemy


Ben Trofatter  committed da9483d

Corrected silly circular import introduced by original "fix".

  • Participants
  • Parent commits 9a892c6
  • Branches default

Comments (0)

Files changed (2)

File lib/sqlalchemy/dialects/postgresql/base.py

View file
  • Ignore whitespace
 from ...engine import default, reflection
 from ...sql import compiler, expression, util as sql_util, operators
 from ... import types as sqltypes
-from .hstore import HSTORE
     from uuid import UUID as _python_UUID
     'interval': INTERVAL,
     'interval year to month': INTERVAL,
     'interval day to second': INTERVAL,
-    'hstore': HSTORE,

File lib/sqlalchemy/dialects/postgresql/hstore.py

View file
  • Ignore whitespace
 import re
-from .base import ARRAY
+from .base import ARRAY, ischema_names
 from ... import types as sqltypes
 from ...sql import functions as sqlfunc
 from ...sql.operators import custom_op
         return process
+ischema_names['hstore'] = HSTORE
 class hstore(sqlfunc.GenericFunction):
     """Construct an hstore value within a SQL expression using the
     Postgresql ``hstore()`` function.