Merge branch 'niphlod-fix/pg8000'
This commit is contained in:
@@ -173,9 +173,12 @@ class PostgreSQLAdapter(BaseAdapter):
|
|||||||
def try_json(self):
|
def try_json(self):
|
||||||
# check JSON data type support
|
# check JSON data type support
|
||||||
# (to be added to after_connection)
|
# (to be added to after_connection)
|
||||||
if self.driver_name == "pg8000":
|
|
||||||
supports_json = self.connection.server_version >= "9.2.0"
|
# until pg8000 supports json, leave this commented
|
||||||
elif (self.driver_name == "psycopg2" and
|
#if self.driver_name == "pg8000":
|
||||||
|
# supports_json = self.connection.server_version >= "9.2.0"
|
||||||
|
|
||||||
|
if (self.driver_name == "psycopg2" and
|
||||||
self.driver.__version__ >= "2.0.12"):
|
self.driver.__version__ >= "2.0.12"):
|
||||||
supports_json = self.connection.server_version >= 90200
|
supports_json = self.connection.server_version >= 90200
|
||||||
elif self.driver_name == "zxJDBC":
|
elif self.driver_name == "zxJDBC":
|
||||||
|
|||||||
Reference in New Issue
Block a user