mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
Returning 1 from the set_progress_handler handler cancels query (GH-4120)
(cherry picked from commit ac03c03b30
)
This commit is contained in:
parent
b3af7fa453
commit
7891556b5c
1 changed files with 4 additions and 0 deletions
|
@ -421,6 +421,10 @@ Connection Objects
|
||||||
If you want to clear any previously installed progress handler, call the
|
If you want to clear any previously installed progress handler, call the
|
||||||
method with :const:`None` for *handler*.
|
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)
|
.. method:: set_trace_callback(trace_callback)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue