| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The setter passed the deleted value to autocommit_converter(), which dereferences it.
LEGACY_TRANSACTION_CONTROL is -1, the same value which PyLong_AsLong() returns on error, so the converter reported success with OverflowError set.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-156151 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker daebcac92d422d7fe9611cbe89044af23ea857c3 3.13 |
Sorry, something went wrong.
|
GH-156152 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-156155 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The setter passed the deleted value to autocommit_converter(), which dereferences it in Py_IsTrue().
Deleting the attribute now raises AttributeError, like row_factory and text_factory (gh-149738).
autocommit_converter() also reported success with OverflowError set when the value was an integer which does not fit in C long, because PyLong_AsLong() returns -1 on error, and LEGACY_TRANSACTION_CONTROL is -1.
Such value is now rejected with ValueError, like any other invalid value.