[ http://issues.apache.org/jira/browse/DERBY-183?page=all ]

Bryan Pendleton resolved DERBY-183.
-----------------------------------

    Resolution: Fixed

Thanks for doing the additional testing, James, and for the updated patch.

I verified that the new test cases fail without your change to the grammar,
and succeed with your change to the grammar. My derbyall run was 100% clean,
so I committed Derby183-patch4.txt to subversion as revision 464078.


> Parameter names required in CREATE FUNCTION
> -------------------------------------------
>
>                 Key: DERBY-183
>                 URL: http://issues.apache.org/jira/browse/DERBY-183
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.0.2.0
>            Reporter: Jack Klebanoff
>         Assigned To: James F. Adams
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>         Attachments: Derby183.patch.txt, Derby183.patch2.txt, 
> Derby183.patch3.txt, Derby183.patch4.txt
>
>
> A statement like
>   create function s2.f2( char(8), integer) returns int
>   language java parameter style java  external name 'myclass.mymethod'
> fails with the message
>   ERROR 42X01: Syntax error: Encountered "char" at line 1, column 24
> However
>   create function s2.f2( p1 char(8), p2 integer) returns int
>   language java parameter style java  external name 'myclass.mymethod'
> is accepted.
> The Derby documentation (at 
> http://incubator.apache.org/derby/manuals/reference/sqlj27.html#CREATE+PROCEDURE+Statement),
>  the SQL2003 standard, and DB2 all agree that the parameter name is optional.

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