From: D'Arcy J.M. Cain Date: Thu, 27 Feb 2003 10:43:50 +0000 (+0000) Subject: Back patch bug fix to quote function. X-Git-Tag: REL7_2_5~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f08392b55ad05465bc17ce933ffecc4c2926ef96;p=thirdparty%2Fpostgresql.git Back patch bug fix to quote function. --- diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py index 189ac112202..65e7fc4b43d 100644 --- a/src/interfaces/python/pg.py +++ b/src/interfaces/python/pg.py @@ -27,7 +27,7 @@ def _quote(d, t): if t == 'bool': # Can't run upper() on these - if d in (0, 1): return ('f', 't')[d] + if d in (0, 1): return ("'f'", "'t'")[d] if string.upper(d) in ['T', 'TRUE', 'Y', 'YES', '1', 'ON']: return "'t'"