[ 
https://issues.apache.org/jira/browse/DERBY-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513551
 ] 

Øystein Grøvlen commented on DERBY-2794:
----------------------------------------

I feel the introduction in the documentation is bit confusing:

"TRIM is a function that returns its first string argument with leading and/or 
trailing pad characters removed.  The second argument indicates whether 
leading, or trailing, or both leading and trailing pad characters should be 
removed. The third argument specifies the pad character that is to be removed."

If argument is to mean parameter, there is only one argument as far as I can 
see.  This argument is comprised of up to three variable parts.

If argument is to mean variable part of the parameter, there are three types of 
arguments, but the numbering is confusing.  The first argument is not 
necessarily the source.  It is the last argument that is the source.

> Document ansi trim functionality
> --------------------------------
>
>                 Key: DERBY-2794
>                 URL: https://issues.apache.org/jira/browse/DERBY-2794
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Documentation
>    Affects Versions: 10.3.0.0
>            Reporter: Manish Khettry
>            Assignee: Manish Khettry
>             Fix For: 10.3.0.0
>
>         Attachments: DERBY-2794.diff, ref-single.html, rreftrimfunc.html, 
> trim_doc, trim_v2.txt
>
>
> Several examples can be found in the junit test (AnsiTrimTest). The unit test 
> is in java/testing/org/apache/derbyTesting/functionTests/tests/lang.
> There is also the documentation from the ANSI spec which Dag had posted in a 
> comment in DERBY-1623.

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

Reply via email to