Skip to content

Conversation

@raj-sharan
Copy link

No description provided.

snapvolumes and others added 28 commits January 16, 2014 23:05
Need to release global interpeter lock during SQL queries by using rb_thread_blocking_region
Version bump to 0.99996
…ault_external == 'UTF-8'

See our wrapper function "utf8_tainted_str_new" for "rb_tainted_str_new"
Don't redefine rb_thread_call_without_gvl when using Ruby 2.x
The taint mechanism was deprecated in Ruby 2.7 and removed in Ruby 3.0

https://bugs.ruby-lang.org/issues/16131
ruby/ruby#2476

From Ruby 2.7, `Object#{taint,untaint,trust,untrust}` and related
functions in the C-API no longer have an effect (all objects are always considered untainted), and are now removed.

Changes taken from https://github.com/vhermecz/ruby-odbc
proc.c (proc_new): promoted lambda/proc/Proc.new with no block
in a method called with a block to a warning/error
…issue-fix

Fix error 'tried to create Proc object without a block (ArgumentError)'
- rb_funcall method when called with 0 as a third argument does not support NULL as the 4th argument. It should be replaced with 0 https://blog.peterzhu.ca/ruby-c-ext-part-3/
- Include header ruby/thread.h for method rb_thread_call_without_gvl to fix implicit declaration of method error
- First argument of rb_thread_call_without_gvl method should be type void *(*func)(void *). In the code the argument type was VALUE(*func)(void *). Implement SQLExecDirect_wrapper_with_gvl to type caste the result of SQLExecDirect_wrapper into void *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants