Back patch bug fix to quote function.
authorD'Arcy J.M. Cain <[email protected]>
Thu, 27 Feb 2003 10:43:50 +0000 (10:43 +0000)
committerD'Arcy J.M. Cain <[email protected]>
Thu, 27 Feb 2003 10:43:50 +0000 (10:43 +0000)
src/interfaces/python/pg.py

index 189ac112202a5ba120505d8754a82359002b181b..65e7fc4b43d4eb243882c983719a2ebde84ed4f2 100644 (file)
@@ -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'"