Commits

Mike Bayer committed 2a940e4

0.8.1 bump + test, changelog for hstore fix [ticket:2680]

  • Participants
  • Parent commits da9483d

Comments (0)

Files changed (3)

File doc/build/changelog/changelog_08.rst

 ==============
 
 .. changelog::
+    :version: 0.8.1
+
+    .. change::
+      :tags: bug, postgresql
+      :tickets: 2680
+
+    Added missing HSTORE type to postgresql type names
+    so that the type can be reflected.
+
+.. changelog::
     :version: 0.8.0
     :released: March 9, 2013
 

File lib/sqlalchemy/__init__.py

 __all__ = sorted(name for name, obj in locals().items()
                  if not (name.startswith('_') or _inspect.ismodule(obj)))
 
-__version__ = '0.8.0'
+__version__ = '0.8.1'
 
 del _inspect, sys
 

File test/dialect/test_postgresql.py

         engine.connect()
         return engine
 
+    def test_reflect(self):
+        from sqlalchemy import inspect
+        insp = inspect(testing.db)
+        cols = insp.get_columns('data_table')
+        assert isinstance(cols[2]['type'], HSTORE)
+
     @testing.only_on("postgresql+psycopg2")
     def test_insert_native(self):
         engine = testing.db