]> granicus.if.org Git - python/commitdiff
Returning 1 from the set_progress_handler handler cancels query (GH-4120)
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 2 Nov 2017 18:08:04 +0000 (21:08 +0300)
committerGitHub <noreply@github.com>
Thu, 2 Nov 2017 18:08:04 +0000 (21:08 +0300)
(cherry picked from commit ac03c03b305273f39d5374e2826526d4ab6bb415)

Doc/library/sqlite3.rst

index 9fef7d7f03f1f00d7761bd6f01e241d8207b9454..ef0c0bf64cdadd76c2465da52ccb9b3689e9f0d5 100644 (file)
@@ -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)