From db34282fe32469b8b1ce2eae2ff6287d2ee262bd Mon Sep 17 00:00:00 2001 From: "D'Arcy J.M. Cain" Date: Thu, 27 Feb 2003 10:42:12 +0000 Subject: Back patch bug fix to quote function. --- src/interfaces/python/pg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces/python/pg.py') diff --git a/src/interfaces/python/pg.py b/src/interfaces/python/pg.py index 6a8d8ac78a2..1de82ea0804 100644 --- a/src/interfaces/python/pg.py +++ b/src/interfaces/python/pg.py @@ -28,7 +28,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'" -- cgit v1.2.3