aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pg.py
diff options
context:
space:
mode:
authorD'Arcy J.M. Cain <darcy@druid.net>2003-02-27 10:42:12 +0000
committerD'Arcy J.M. Cain <darcy@druid.net>2003-02-27 10:42:12 +0000
commitdb34282fe32469b8b1ce2eae2ff6287d2ee262bd (patch)
treeabd4643a10e884a581361a7e4d329463105c5fd0 /src/interfaces/python/pg.py
parentd47a0f7c76e3db1c4704819d573866e3a1fe1eb5 (diff)
downloadpostgresql-db34282fe32469b8b1ce2eae2ff6287d2ee262bd.tar.gz
postgresql-db34282fe32469b8b1ce2eae2ff6287d2ee262bd.zip
Back patch bug fix to quote function.
Diffstat (limited to 'src/interfaces/python/pg.py')
-rw-r--r--src/interfaces/python/pg.py2
1 files changed, 1 insertions, 1 deletions
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'"