Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ff872a

Browse files
committed
The quote function should return a string suitable for dropping into a
query string. This fixes a bug where bool types sometimes returned witha string that could not be dropped into a query.
1 parent8466680 commit9ff872a

File tree

1 file changed

+1
-1
lines changed
  • src/interfaces/python

1 file changed

+1
-1
lines changed

‎src/interfaces/python/pg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _quote(d, t):
2929

3030
ift=='bool':
3131
# Can't run upper() on these
32-
ifdin (0,1):return ('f','t')[d]
32+
ifdin (0,1):return ("'f'","'t'")[d]
3333

3434
ifstring.upper(d)in ['T','TRUE','Y','YES','1','ON']:
3535
return"'t'"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp