Bug with has_ints?

6 views
Skip to first unread message

Danyal

unread,
Nov 27, 2010, 2:03:41 AM11/27/10
to SimpleRecord
I created a simple model which has attributes, floats and ints.
Everything works fine except the ints. No matter what value I set one
of the int attributes to, it always comes out 09223372036854775808 in
the db. Any ideas?

Travis Reeder

unread,
Nov 27, 2010, 1:18:44 PM11/27/10
to simple...@googlegroups.com
SimpleDB only stores strings so ints are stored with padding and offsets to they are comparable and sortable when querying.  When you retrieve them, SimpleRecord automatically converts it back to your original int.


--
You received this message because you are subscribed to the Google Groups "SimpleRecord" group.
To post to this group, send email to simple...@googlegroups.com.
To unsubscribe from this group, send email to simple-recor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-record?hl=en.


Reply all
Reply to author
Forward
0 new messages