jeremyevans/sequel — pull request #752 by chanks (2014-01-09 09:40:12+00:00)
Title: Aborting transactions in killed threads

Hi Jeremy -

So, it turned out that the unfortunate issue where the status of a killed thread was "run" was introduced in Ruby 1.9 but fixed in Ruby 2.0. This means that on Ruby 2.0, 2.1, and recent versions of Rubinius we can use the safer 1.8 behavior of executing a rollback if the current thread's status is "aborting". The specs pass on every version of Ruby on my system:

rvm rubies

jruby-1.7.5 [ x86_64 ]
rbx-2.1.1 [ x86_64 ]
rbx-2.2.1 [ x86_64 ]
rbx-2.2.3 [ x86_64 ]
ruby-1.8.7-p374 [ x86_64 ]
ruby-1.9.3-p484 [ x86_64 ]
* ruby-2.0.0-p247 [ x86_64 ]
=> ruby-2.1.0 [ x86_64 ]

I couldn't find the list of Rubies you test Sequel on - are there any others I should run?

Thanks!