diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-11-02 18:08:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 18:08:04 (GMT) |
commit | 7891556b5cc98e546f905b4a5778e7cd7d9a0c7c (patch) | |
tree | 00562c599967a5a69f7ca04a36c323468133b597 /Doc/library | |
parent | b3af7fa453035aecabfad80897bb3d49f2ac344d (diff) | |
download | cpython-7891556b5cc98e546f905b4a5778e7cd7d9a0c7c.zip cpython-7891556b5cc98e546f905b4a5778e7cd7d9a0c7c.tar.gz cpython-7891556b5cc98e546f905b4a5778e7cd7d9a0c7c.tar.bz2 |
Returning 1 from the set_progress_handler handler cancels query (GH-4120)
(cherry picked from commit ac03c03b305273f39d5374e2826526d4ab6bb415)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/sqlite3.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 9fef7d7..ef0c0bf 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) |