You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
psycopg2 does not attempt to resolve parameters if none are passed:
sql = '''select cast('100%' as varchar) as expected'''
psycopg2_cursor.execute(sql)
I believe this is done so that the output of .mogrify() may be passed to .execute() without a second attempt to resolve parameters where '%' may be in the data.
momoko attempts to resolve parameters even if none are passed:
momoko_cursor = (yield db.execute(sql)) # fails
momoko_cursor = (yield db.execute(sql.replace('%', '%%')) # passes
The text was updated successfully, but these errors were encountered:
psycopg2 does not attempt to resolve parameters if none are passed:
sql = '''select cast('100%' as varchar) as expected'''
psycopg2_cursor.execute(sql)
I believe this is done so that the output of .mogrify() may be passed to .execute() without a second attempt to resolve parameters where '%' may be in the data.
momoko attempts to resolve parameters even if none are passed:
momoko_cursor = (yield db.execute(sql)) # fails
momoko_cursor = (yield db.execute(sql.replace('%', '%%')) # passes
The text was updated successfully, but these errors were encountered: