db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-495) COALESCE
Date Tue, 01 Sep 2009 20:29:32 GMT

    [ https://issues.apache.org/jira/browse/DERBY-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750085#action_12750085
] 

Dag H. Wanvik commented on DERBY-495:
-------------------------------------

Thanks for the patch, Kim! Some small comments:

> COALESCE ( expression, expression[, expression]... )
                                                        ^ add a space before left bracket
for legibility 

Prefer * repetition operator in the grammar production. The manual is
schizophrenic on whether to use * or ..., though. But * dominates, I
counted 25 occurences vs. 2-3.

    COALESCE ( expression, expression [, expression]* )


Maybe it would be nice to have the second example take three args? E.g.

ij> select coalesce (smallintcol, bigintcol, intcol) from temp;
1                   
--------------------
1                   
2                   
3 


> COALESCE
> --------
>
>                 Key: DERBY-495
>                 URL: https://issues.apache.org/jira/browse/DERBY-495
>             Project: Derby
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 10.0.2.0
>         Environment: n/a
>            Reporter: Paul Jenkins
>            Assignee: Kim Haase
>            Priority: Minor
>         Attachments: DERBY-495.diff, rreffunccoalesce.html
>
>
> The COALESCE function has been implemeted since 10.0.2.0 (at least) but isn't documented.

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


Mime
View raw message