Resolved a typo in the psycopg2 driver, qtTypeIdent checking the wrong

list, because - in specific type match comma (,) was missing.
This commit is contained in:
Ashesh Vashi 2016-01-21 16:54:21 +05:30
parent 8f18ff04ae
commit 0a21beca17

View File

@ -843,16 +843,16 @@ class Driver(BaseDriver):
valNoArray = value[:-2]
if forTypes and valNoArray.lower() in [
u"bit varying"
u"\"char\"",
u"character varying",
u"double precision"
u"timestamp without time zone"
u"timestamp with time zone"
u"time without time zone"
u"time with time zone"
u"\"trigger\""
u"\"unknown\""
u'bit varying',
u'"char"',
u'character varying',
u'double precision',
u'timestamp without time zone',
u'timestamp with time zone',
u'time without time zone',
u'time with time zone',
u'"trigger"',
u'"unknown"'
]:
return False