-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
sqlite3 doesn't complain if the request contains a null character #65346
Comments
>>> import sqlite3
>>> c=sqlite3.connect(":memory:")
>>> c.execute("select 1")
<sqlite3.Cursor object at 0x7fd11e6a9110>
>>> c.execute("select 1").fetchall()
[(1,)]
>>> c.execute("\0select 1").fetchall()
[] |
Here is a first patch. I only tested the execute() method. |
Added a comment on Rietveld. |
Here is revised patch. There is yet one way to create Statement instance (Connection.__call__) and this patch covers it too. |
sqlite_null_2.patch looks good to me. |
New changeset 430865e9ea9f by Serhiy Storchaka in branch '2.7': New changeset 517f216d45ea by Serhiy Storchaka in branch '3.4': New changeset b81f5652c2d7 by Serhiy Storchaka in branch 'default': |
New changeset e358aaf9563f by Benjamin Peterson in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: