We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b82a8 commit 049ef37Copy full SHA for 049ef37
lib/duckdb/connection.rb
@@ -181,7 +181,7 @@ def register_scalar_function(scalar_function)
181
result = execute("SELECT current_setting('threads')")
182
thread_count = result.first.first.to_i
183
184
- unless thread_count == 1
+ if thread_count > 1
185
raise DuckDB::Error,
186
"Scalar functions with Ruby callbacks require single-threaded execution. " \
187
"Current threads setting: #{thread_count}. " \
0 commit comments