New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When converting to 'format' type, existing '%' characters are not escaped #10
Comments
@kesmit13 Thanks for the report. What you expected is how the library should generate the query string. The psycopg2 library behaves similarly: the modulo operator ( |
I see a similar issue, but in reverse for numeric parameters. In this case, I'm going from
The above results in the following query.
Note that the |
Maybe the above issue isn't an issue after all. I think I may need |
@kesmit13 The |
@kesmit13 |
I ran into an issue when using a modulo operator (%) in a query which originally used named parameters (
:foo
) but had to be converted to format parameters (%s
). The modulo operator is not escaped which caused the MySQLdb library to fail when inserting parameter substitutions. Here is an example.I expected the query string to be:
The text was updated successfully, but these errors were encountered: