]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
0.8.1 bump + test, changelog for hstore fix [ticket:2680]
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Mar 2013 19:55:56 +0000 (12:55 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Mar 2013 19:55:56 +0000 (12:55 -0700)
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/__init__.py
test/dialect/test_postgresql.py

index 97c9acb51e2b53266a7b78845d2f59f2344fc990..4b4faf4a09f749ffe35eee7865255b542710d452 100644 (file)
@@ -3,6 +3,16 @@
 0.8 Changelog
 ==============
 
+.. 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
index 2352f13081f9a147a4becb02f3296007bb7cc858..6e924ea9dabe09f03ce817f13ba29e66fe0c1aa4 100644 (file)
@@ -120,7 +120,7 @@ from .engine import create_engine, engine_from_config
 __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
 
index 62e85535695262d39ccd10c9a1d1355facee3118..005aed1ceeca51884ec087ca17c3ed7c860a493c 100644 (file)
@@ -3101,6 +3101,12 @@ class HStoreRoundTripTest(fixtures.TablesTest):
         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