mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 12:20:31 +01:00
Back patch bug fix to quote function.
This commit is contained in:
parent
895491bc22
commit
f08392b55a
|
|
@ -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'"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user