Initial support for PostgreSQL 12. Fixes #4283. Fixes #4288. Fixes #4290.

This commit is contained in:
Dave Page
2019-06-10 14:24:45 +01:00
parent 2ca11c84e8
commit 6d52f2b911
26 changed files with 900 additions and 109 deletions

View File

@@ -615,8 +615,14 @@ class TableCommand(GridCommand):
This function checks whether the table has oids or not.
"""
driver = get_driver(PG_DEFAULT_DRIVER)
manager = driver.connection_manager(self.sid)
# Remove the special behavior of OID columns from
# PostgreSQL 12 onwards, so returning False.
if manager.sversion >= 120000:
return False
if default_conn is None:
manager = driver.connection_manager(self.sid)
conn = manager.connection(did=self.did, conn_id=self.conn_id)
else:
conn = default_conn