Skip to content

Commit 3ba847c

Browse files
committed
Allow statement_timeout= to accept a nil to reset the progress_handler
1 parent b819265 commit 3ba847c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/sqlite3/database.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ def translate_from_db types, row
751751
end
752752

753753
def statement_timeout=( milliseconds )
754+
progress_handler(nil) and return if milliseconds.nil?
755+
754756
timeout_seconds = milliseconds.fdiv(1000)
755757

756758
progress_handler do

0 commit comments

Comments
 (0)