Unverified Kaydet (Commit) 7891556b authored tarafından Berker Peksag's avatar Berker Peksag Kaydeden (comit) GitHub

Returning 1 from the set_progress_handler handler cancels query (GH-4120)

(cherry picked from commit ac03c03b)
üst b3af7fa4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment