You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Tore Halset (JIRA)" <ji...@apache.org> on 2009/06/10 14:18:07 UTC

[jira] Resolved: (CAY-1206) merge: a way to set value for null for madatory columns

     [ https://issues.apache.org/jira/browse/CAY-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tore Halset resolved CAY-1206.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.0)
                   3.0M6

This was fixed for 3.0M6, but does not have support in the modeler. I do not know if this is useful at all from the modeler. It is very useful for automatic upgrade stuff.

> merge: a way to set value for null for madatory columns
> -------------------------------------------------------
>
>                 Key: CAY-1206
>                 URL: https://issues.apache.org/jira/browse/CAY-1206
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0M2, 3.0M3, 3.0M4, 3.0M5
>            Reporter: Tore Halset
>            Assignee: Tore Halset
>            Priority: Minor
>             Fix For: 3.0M6
>
>
> When adding a "not null" column to a table with rows, or when setting a column to "not null", there should be a way to tell DbMerger about the values that should be used instead of null for existing rows. 
> With this information, the merger should create sql like the following before setting the column to "not null".
> update table set col='the value' where col is null;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.