-
Notifications
You must be signed in to change notification settings - Fork 435
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
Remove escape() and escape_string() from MySQLdb. #511
Conversation
Codecov Report
@@ Coverage Diff @@
## main #511 +/- ##
==========================================
+ Coverage 83.99% 85.76% +1.77%
==========================================
Files 6 6
Lines 556 583 +27
==========================================
+ Hits 467 500 +33
+ Misses 89 83 -6
Continue to review full report at Codecov.
|
why Remove escape() and escape_string() ? |
Same question. |
|
MySQLdb.escape_string was removed in v2.1.0, here: PyMySQL/mysqlclient#511 mysqlclient still allows escape_string to be used via the connection object really we should be using parameterized queries: https://pynative.com/python-mysql-execute-parameterized-query-using-prepared-statement/ that would require more substantial changes however
MySQLdb.escape_string was removed in v2.1.0, here: PyMySQL/mysqlclient#511 we can still access `escape_string` via the underlying `_mysql` object that mysqlclient wraps really we should be using parameterized queries: https://pynative.com/python-mysql-execute-parameterized-query-using-prepared-statement/ that would require more substantial changes however
MySQLdb.escape_string was removed in v2.1.0, here: PyMySQL/mysqlclient#511 mysqlclient still allows escape_string to be used via the connection object really we should be using parameterized queries: https://pynative.com/python-mysql-execute-parameterized-query-using-prepared-statement/ that would require more substantial changes however
MySQLdb.escape_string was removed in v2.1.0, here: PyMySQL/mysqlclient#511 we can still access `escape_string` via the underlying `_mysql` object that mysqlclient wraps really we should be using parameterized queries: https://pynative.com/python-mysql-execute-parameterized-query-using-prepared-statement/ that would require more substantial changes however
No description provided.