[Python-checkins] Returning 1 from the set_progress_handler handler cancels query (GH-4120)
Berker Peksag
webhook-mailer at python.org
Thu Nov 2 10:34:14 EDT 2017
https://github.com/python/cpython/commit/ac03c03b305273f39d5374e2826526d4ab6bb415
commit: ac03c03b305273f39d5374e2826526d4ab6bb415
branch: master
author: Simon Willison <simonw at eventbrite.com>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2017年11月02日T17:34:11+03:00
summary:
Returning 1 from the set_progress_handler handler cancels query (GH-4120)
files:
M Doc/library/sqlite3.rst
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 9fef7d7f03f..ef0c0bf64cd 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -421,6 +421,10 @@ Connection Objects
If you want to clear any previously installed progress handler, call the
method with :const:`None` for *handler*.
+ Returning a non-zero value from the handler function will terminate the
+ currently executing query and cause it to raise an :exc:`OperationalError`
+ exception.
+
.. method:: set_trace_callback(trace_callback)
More information about the Python-checkins
mailing list