You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
require'time'require'data_mapper'DataMapper.setup(:default,'sqlite::memory:')classSongincludeDataMapper::Resourceproperty:id,Serialproperty:time,Time,:required=>trueendDataMapper.finalizeDataMapper.auto_upgrade!t=Time.parse("2016-01-01 00:00:00.00005000 -05:00")Song.create(time: t)Song.at(0)# workst=Time.parse("2016-01-01 00:00:00.00000000 -05:00")# no problems with this objectSong.create(time: t)# saves with no problemsSong.at(1)# # will raise error here
Error returned:
/home/rob/.rvm/gems/ruby-2.2.1/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:153:in`local': argument out of range (ArgumentError) from /home/rob/.rvm/gems/ruby-2.2.1/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:153:in `next!' from /home/rob/.rvm/gems/ruby-2.2.1/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:153:in `block in read'from/home/rob/.rvm/gems/ruby-2.2.1/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:276:in`with_connection' from /home/rob/.rvm/gems/ruby-2.2.1/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:141:in `read' from /home/rob/.rvm/gems/ruby-2.2.1/gems/dm-core-1.2.1/lib/dm-core/repository.rb:162:in `read'from/home/rob/.rvm/gems/ruby-2.2.1/gems/dm-core-1.2.1/lib/dm-core/model.rb:378:in`first' from main.rb:18:in `<main>'
Note: changing column to DateTime later, allows me to access the values
property:time,DateTime,:required=>true
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I discovered a bug when retrieving records with a Time property saved with a certain value.
Versions:
To reproduce:
Error returned:
Note: changing column to DateTime later, allows me to access the values
The text was updated successfully, but these errors were encountered: