mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
Back patch bug fix to quote function.
This commit is contained in:
@@ -28,7 +28,7 @@ def _quote(d, t):
|
|||||||
|
|
||||||
if t == 'bool':
|
if t == 'bool':
|
||||||
# Can't run upper() on these
|
# 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']:
|
if string.upper(d) in ['T', 'TRUE', 'Y', 'YES', '1', 'ON']:
|
||||||
return "'t'"
|
return "'t'"
|
||||||
|
|||||||
Reference in New Issue
Block a user