I am working with a legacy MySQL database where NULL dates are
displayed as 0000-00-00 00:00:00.  This causes a problem in conversion
(reasonably enough!):

/opt/local/lib/ruby/gems/1.8/gems/sequel-2.11.0/lib/sequel_core/
core_ext.rb:198:in `to_sequel_time': Invalid Time value '0000-00-00
00:00:00' (argument out of range) (Sequel::Error::InvalidValue)
        from /opt/local/lib/ruby/gems/1.8/gems/sequel-2.11.0/lib/
sequel_core/adapters/mysql.rb:334:in `send'
        from /opt/local/lib/ruby/gems/1.8/gems/sequel-2.11.0/lib/
sequel_core/adapters/mysql.rb:334:in `convert_type'

Is there a way to tell it to swap to NULL instead?  I know there is a
JDBC Driver setting that does this, but don't quite see how to do in
with Sequel...

Thanks!

Eric

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to