You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Satheesh Bandaram (JIRA)" <de...@db.apache.org> on 2006/01/23 21:43:11 UTC

[jira] Commented: (DERBY-167) Inserting values in an identity column

    [ http://issues.apache.org/jira/browse/DERBY-167?page=comments#action_12363743 ] 

Satheesh Bandaram commented on DERBY-167:
-----------------------------------------

Hi Tomohito... Do you still plan to continue work on this issue? You already submitted your new enhancement that adds BY DEFAULT option, taking care of solution 1 in the description.

If you think this addresses the problem sufficiently, please update the resolution.

> Inserting values in an identity column
> --------------------------------------
>
>          Key: DERBY-167
>          URL: http://issues.apache.org/jira/browse/DERBY-167
>      Project: Derby
>         Type: Improvement
>   Components: SQL
>     Versions: 10.1.1.0
>  Environment: SQL
>     Reporter: Christian Rodriguez
>     Assignee: Tomohito Nakayama
>  Attachments: DERBY-167_7.patch
>
> It is not possible to insert a specific value in a column defined as identity. This makes it very hard to migrate from other RDBMSs or to import data dumped from other databases. 
> For example, an autoincrement column in MySQL should be an identity column. The problem is that when the data is dumped from MySQL to a file, it generates inserts with values. These values cant be inserted in the Derby table. 
> Posible solutions: 1. being able to "generate by default as identity" 2. being able to disable the "identity" feature for a column 3. being able to generate a column as non identity and after data is populated, alter table to add the "identity" to the column.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (DERBY-167) Inserting values in an identity column

Posted by TomohitoNakayama <to...@basil.ocn.ne.jp>.
Hello.

Sorry that I left these issues.

I left DERBY-368, which corresponds to solution 2 and 3 in DERBY-167,
and resolve DERBY-167 itself.

Best regards.

Satheesh Bandaram (JIRA) wrote:

>    [ http://issues.apache.org/jira/browse/DERBY-167?page=comments#action_12363743 ] 
>
>Satheesh Bandaram commented on DERBY-167:
>-----------------------------------------
>
>Hi Tomohito... Do you still plan to continue work on this issue? You already submitted your new enhancement that adds BY DEFAULT option, taking care of solution 1 in the description.
>
>If you think this addresses the problem sufficiently, please update the resolution.
>
>  
>
>>Inserting values in an identity column
>>--------------------------------------
>>
>>         Key: DERBY-167
>>         URL: http://issues.apache.org/jira/browse/DERBY-167
>>     Project: Derby
>>        Type: Improvement
>>  Components: SQL
>>    Versions: 10.1.1.0
>> Environment: SQL
>>    Reporter: Christian Rodriguez
>>    Assignee: Tomohito Nakayama
>> Attachments: DERBY-167_7.patch
>>
>>It is not possible to insert a specific value in a column defined as identity. This makes it very hard to migrate from other RDBMSs or to import data dumped from other databases. 
>>For example, an autoincrement column in MySQL should be an identity column. The problem is that when the data is dumped from MySQL to a file, it generates inserts with values. These values cant be inserted in the Derby table. 
>>Posible solutions: 1. being able to "generate by default as identity" 2. being able to disable the "identity" feature for a column 3. being able to generate a column as non identity and after data is populated, alter table to add the "identity" to the column.
>>    
>>
>
>  
>

-- 
/*

        Tomohito Nakayama
        tomonaka@basil.ocn.ne.jp
        tomohito@rose.zero.ad.jp
        tmnk@apache.org

        Naka
        http://www5.ocn.ne.jp/~tomohito/TopPage.html

*/