Commits

Frank Fischer committed 560dbed

Catch MRI specific FFI exception in maybe_attach_function

  • Participants
  • Parent commits 6c2f816

Comments (0)

Files changed (1)

File lib/ffi-mysql/mysql.rb

 
         def self.maybe_attach_function name, *args
             attach_function name, *args
+        rescue FFI::NotFoundError => e
+            define_singleton_method(name) {|*a| raise e}
         rescue => e
             define_singleton_method(name) {|*a| raise e}
         end