projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895491b
)
Back patch bug fix to quote function.
author
D'Arcy J.M. Cain
<
[email protected]
>
Thu, 27 Feb 2003 10:43:50 +0000
(10:43 +0000)
committer
D'Arcy J.M. Cain
<
[email protected]
>
Thu, 27 Feb 2003 10:43:50 +0000
(10:43 +0000)
src/interfaces/python/pg.py
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/python/pg.py
b/src/interfaces/python/pg.py
index 189ac112202a5ba120505d8754a82359002b181b..65e7fc4b43d4eb243882c983719a2ebde84ed4f2 100644
(file)
--- 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'"