]> git.saurik.com Git - cyql.git/commitdiff
Add support for hstore bridge adapter.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 23 Nov 2011 03:10:18 +0000 (03:10 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 23 Nov 2011 03:10:18 +0000 (03:10 +0000)
__init__.py

index 73aa9ad650bbee577bdb280e5992721fa4175900..9dc57b361c695ce098736d5582c0d00a47c0da13 100644 (file)
@@ -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()