[ 
http://issues.apache.org/jira/browse/DERBY-2042?page=comments#action_12447503 ] 
            
Knut Anders Hatlen commented on DERBY-2042:
-------------------------------------------

In the example that shows how to change the type of a column, is it really 
necessary to rename c1 to c1_oldtype before it is dropped? Couldn't the example 
be simplified to this:

    * ALTER TABLE t ADD COLUMN c1_newtype NEWTYPE;
    * UPDATE t SET c1_newtype = c1;
    * ALTER TABLE t DROP COLUMN c1;
    * ALTER TABLE t RENAME COLUMN c1_newtype to c1;

?

Also, would it be better if the example were in a code block rather than in a 
list?

> Provide documentation for new RENAME COLUMN statement
> -----------------------------------------------------
>
>                 Key: DERBY-2042
>                 URL: http://issues.apache.org/jira/browse/DERBY-2042
>             Project: Derby
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 10.3.0.0
>            Reporter: Bryan Pendleton
>         Assigned To: Bryan Pendleton
>            Priority: Minor
>         Attachments: renameColumnDoc_v1.diff, 
> rrefsqljrenamecolumnstatement.html
>
>
> DERBY-1490 proposes to add a new RENAME COLUMN statement. Assuming that such 
> a statement is added, we need to update the documentation to describe this 
> new statement. DERBY-1490 describes the behavior of the statement in detail; 
> this issue is just to track the documentation, which I intend to address 
> separately after the DERBY-1490 changes are committed.

-- 
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

        

Reply via email to