Sha256: eb9bdbc8670062bddc81d78b167d08721857f7031ab3c1d215c655811861132e

Contents?: true

Size: 335 Bytes

Versions: 41

Compression:

Stored size: 335 Bytes

Contents

module Mysql2
  class Statement
    include Enumerable

    if Thread.respond_to?(:handle_interrupt)
      def execute(*args)
        Thread.handle_interrupt(::Mysql2::Util::TimeoutError => :never) do
          _execute(*args)
        end
      end
    else
      def execute(*args)
        _execute(*args)
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
mysql2-0.4.10-x86-mswin32-60 lib/mysql2/statement.rb
mysql2-0.4.10-x86-mingw32 lib/mysql2/statement.rb
mysql2-0.4.10-x64-mingw32 lib/mysql2/statement.rb
mysql2-0.4.10 lib/mysql2/statement.rb
mysql2-0.4.9-x86-mswin32-60 lib/mysql2/statement.rb
mysql2-0.4.9-x86-mingw32 lib/mysql2/statement.rb
mysql2-0.4.9-x64-mingw32 lib/mysql2/statement.rb
mysql2-0.4.9 lib/mysql2/statement.rb
mysql2-0.4.8-x86-mswin32-60 lib/mysql2/statement.rb
mysql2-0.4.8-x86-mingw32 lib/mysql2/statement.rb
mysql2-0.4.8-x64-mingw32 lib/mysql2/statement.rb
mysql2-0.4.8 lib/mysql2/statement.rb
mysql2-0.4.7-x86-mswin32-60 lib/mysql2/statement.rb
mysql2-0.4.7-x86-mingw32 lib/mysql2/statement.rb
mysql2-0.4.7-x64-mingw32 lib/mysql2/statement.rb
mysql2-0.4.7 lib/mysql2/statement.rb
mysql2-0.4.6-x86-mswin32-60 lib/mysql2/statement.rb
mysql2-0.4.6-x86-mingw32 lib/mysql2/statement.rb
mysql2-0.4.6-x64-mingw32 lib/mysql2/statement.rb
mysql2-0.4.6 lib/mysql2/statement.rb