Hi,
I have a simple sequel statement which retrieves a row from a
postgresql database, which has a datetime column whose value is
2104-02-05, which is a prefectly valid date just a long way in the
future.
I get this error which apparently is a limitation of ruby's time.rb
library, is there a work around?
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/time.rb:180:in `utc':
ArgumentError: time out of range (Sequel::InvalidValue)
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/time.rb:
180:in `make_time'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/time.rb:
243:in `parse'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/
sequel-3.14.0/lib/sequel/core.rb:216:in `string_to_datetime'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/
sequel-3.14.0/lib/sequel/timezones.rb:92:in `convert_input_timestamp'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/
sequel-3.14.0/lib/sequel/timezones.rb:163:in `convert_timestamp'
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/
sequel-3.14.0/lib/sequel/timezones.rb:46:in
`database_to_application_timestamp'
... etc
--
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.