El Viernes, 18 de Diciembre de 2009, Iñaki Baz Castillo escribió: > El Viernes, 18 de Diciembre de 2009, Jeremy Evans escribió: > > On Dec 17, 4:34 pm, Iñaki Baz Castillo <[email protected]> wrote: > > > El Jueves, 17 de Diciembre de 2009, Aman Gupta escribió: > > > > require 'mysqlplus' > > > > class Mysql; alias :query :async_query; end > > > > > > I confirm that the second line is not required as 'query' method is > > > already re-defined in mysqlplus-0.1.1/ext/mysql.c: > > > > > > rb_define_method(cMysql, "query", query, 1); > > > > But is it defined to be the same as async_query? > > I thought "yes" the first time, but after re-inspecting it it's not. > > So the patch for Sequel oudl contain it: > > begin > require "mysqlplus" > class Mysql; alias :query :async_query; end > rescue LoadError > require "mysql" > raise(LoadError, "require 'mysql' did not define > Mysql::CLIENT_MULTI_RESULTS!\n You are probably using the pure ruby > mysql.rb driver,\n which Sequel does not support. You need to install\n > the C based adapter, and make sure that the mysql.so\n file is loaded > instead of the mysql.rb file.\n") unless defined? > (Mysql::CLIENT_MULTI_RESULTS) > end
Would this code be valid? Thanks. -- Iñaki Baz Castillo <[email protected]> -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
