Skip to content
Snippets Groups Projects
Commit 9ff872a2 authored by D'Arcy J.M. Cain's avatar D'Arcy J.M. Cain
Browse files

The quote function should return a string suitable for dropping into a

query string.  This fixes a bug where bool types sometimes returned with
a string that could not be dropped into a query.
parent 84666801
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,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'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment