Default values broken (again) in Entity Model
Posted: Thu 08 Mar 2012 23:41
I believe this is the third time I've opened this defect. It comes and goes as I upgrade DevArt releases. When I used SYSDATE as the default value for an Oracle DATE field it works fine. When I use USER for an oracle VARCHAR2 field it doesn't always work. It seems depending on which dialog in the Entity Developer I use it either puts in DefaultValue or devart:DefaultValue into the file. And either way it does not put the current USER into either my ADD_USERNAME or UPDATE_USERNAME columns which are non-nullable, causing the whole INSERT to fail. I have seen it with 6.60.283 and with 6.70.311. Older tables in the model with the same defaults edited in older versions of EntityDeveloper work fine. I set the AddUsername column ti Identity and the UpdateUsername column to Computed, same as I did with the ones that do work like the DATE columns.