On Mar 30, 12:21 pm, Michael Lang <[email protected]> wrote: > The "mysql" adapter. > > Sequel.connect(:adapter => 'mysql', ...
Type translation in the mysql adapter comes from the MYSQL_TYPES constant, which is a hash with integer keys for the MySQL types and proc values that convert the string given by MySQL into an appropriate ruby object. You need to figure out what MySQL type integer is used in the result set for that query. This requires dropping down to the connection level and calling #type on the appropriate field returned by the result set's #fetch_fields. You need to make sure that a proc exists that converts that type to a date. Look at lib/sequel/adapters/ mysql.rb and ask here if you have any questions. If you can produce a self contained example, I'll be happy to run it and see if I can replicate the behavior and determine what is causing it. Jeremy -- 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.
