From: Jay Freeman (saurik) Date: Wed, 23 Nov 2011 03:10:18 +0000 (+0000) Subject: Add support for hstore bridge adapter. X-Git-Url: https://git.saurik.com/cyql.git/commitdiff_plain/0420b0db82782da59c3d6bf0b4e89eb80166e8ac Add support for hstore bridge adapter. --- diff --git a/__init__.py b/__init__.py index 73aa9ad..9dc57b3 100644 --- a/__init__.py +++ b/__init__.py @@ -35,6 +35,11 @@ class connect(object): except: self.driver.close() + try: + psycopg2.extras.register_hstore(self.driver, globally=False, unicode=True) + except ProgrammingError, e: + pass + def close(self): self.driver.close()