[baseten-users] ERROR: null value in column "xyz" violates not-null constraint when trying to insert mandatory data

Sascha Gresk sascha.gresk at opensource-consult.com
Fri May 22 01:48:44 EEST 2009


Am 21.05.2009 um 19:42 schrieb Sascha Gresk:

> Hello again,
>
> I changed the model in the tutorial so one of the column is "NOT NULL"
>
> when I try to insert data ... I get a
>
>
> ERROR:  null value in column "xyz" violates not-null constraint


Solved ... After watching http://developer.apple.com/cocoa/coredatatutorial/coredata_mov3.html
I just gave my Property a "Default Value". Thats an excellent solution  
for me, and maybe it is even
suitable for the tutorial.

regards,
Sascha





More information about the baseten-users mailing list