1
0
Fork 0

Partial fix for #1058. (#1068)

This commit is contained in:
Irina Truong 2019-06-09 08:05:28 -07:00 committed by Dick Marinus
parent f27ac1c110
commit 10cc4ce2b9
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@ Features:
* Add `\\G` as a terminator to sql statements that will show the results in expanded mode. This feature is copied from mycli. (Thanks: `Amjith Ramanujam`_)
Bug fixes:
----------
* Error connecting to PostgreSQL 12beta1 (#1058). (Thanks: `Irina Truong`_)
2.1.1
=====

View File

@ -559,7 +559,7 @@ class PGExecute(object):
att.attname column_name,
att.atttypid::regtype::text type_name,
att.atthasdef AS has_default,
def.adsrc as default
pg_catalog.pg_get_expr(def.adbin, def.adrelid, true) as default
FROM pg_catalog.pg_attribute att
INNER JOIN pg_catalog.pg_class cls
ON att.attrelid = cls.oid