I've got a problem I've never run into before. In the application I've
recently inherited they've defined a constraint between two columns.
However, in the table that references the primary key the column can
actually contain a null value.
The problem I'm running into is if I try to insert the data w/a null value I
get a constraint issue, if I leave the column out completely then no
constraint issue is passed.
Example:
insert into
[user]
( name, departmentId )
values
( 'dan', null)
That throws an error, while this won't:
insert into
[user]
( name )
values
( 'dan' )
The problem is I'm trying to do some operations in bulk so sometimes the
departmentId will be there and sometimes it won't.
Is there a way around this?
Thanks,
Dan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212559
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54