]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Back patch bug fix to quote function.
authorD'Arcy J.M. Cain <darcy@druid.net>
Thu, 27 Feb 2003 10:42:12 +0000 (10:42 +0000)
committerD'Arcy J.M. Cain <darcy@druid.net>
Thu, 27 Feb 2003 10:42:12 +0000 (10:42 +0000)
src/interfaces/python/pg.py

index 6a8d8ac78a2b1600410dea16779d4d56cb771c01..1de82ea0804f70fc4ca8d19535cdd71cf0b8ac03 100644 (file)
@@ -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'"