My goal is to call the .setQueryTimeout() method on some underlying
Statement object(s) used by ActiveRecord to execute queries on a MySQL
Does anyone know of a mechanism to either access the underlying
Statement object myself to call this method, or can anyone suggest some
approach that would cause .setQueryTimeout() to be called for each new
Statement object created by ActiveRecord?
(I have seen
which suggests a solution that solves a different problem.
Mysql::OPT_READ_TIMEOUT and Mysql::OPT_WRITE_TIMEOUT are very different
things than Query Timeout, which actually causes a KILL QUERY statement
to be executed on the server.)