
postgres: nil values in belongs_to foreign_key columns should be returned nil rather than zero
Reported by Adam French | February 4th, 2008 @ 03:22 PM
1)
'DataMapper::Associations::BelongsToAssociation should not assign zoo_id when passed nil' FAILED
expected nil, got 0
./spec/associations/belongs_to_association_spec.rb:59:
Comments and changes to this ticket
-
Sam Smoot February 4th, 2008 @ 04:38 PM
- Assigned user set to Sam Smoot
- State changed from new to resolved
This is a bug in do_mysql and do_postgres. They type-cast based on the type reported by the column. In this case, they just use a naive #to_i call.
Fixed in r14.
-
-
Dan Kubb (dkubb) April 15th, 2008 @ 03:25 AM
- Milestone cleared.
-
Sam Smoot April 28th, 2008 @ 05:37 PM
- State changed from open to resolved
Not a prob in the new DO.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Tags
Referenced by
-
148 [Patch] :dependent option for has_many, habtm associations http://wm.lighthouseapp.com/proj...