From 9ad9ccec87b89023db611d70da2c6d455c29ab60 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 18 Mar 2013 12:55:56 -0700 Subject: [PATCH] 0.8.1 bump + test, changelog for hstore fix [ticket:2680] --- doc/build/changelog/changelog_08.rst | 10 ++++++++++ lib/sqlalchemy/__init__.py | 2 +- test/dialect/test_postgresql.py | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst index 97c9acb51e..4b4faf4a09 100644 --- a/doc/build/changelog/changelog_08.rst +++ b/doc/build/changelog/changelog_08.rst @@ -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 diff --git a/lib/sqlalchemy/__init__.py b/lib/sqlalchemy/__init__.py index 2352f13081..6e924ea9da 100644 --- a/lib/sqlalchemy/__init__.py +++ b/lib/sqlalchemy/__init__.py @@ -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 diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 62e8553569..005aed1cee 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -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 -- 2.47.2