Thanks Jim

Please zip the modified files and upload it to the Patch Tracker at our
SourceForge project site.

I have recently added support for CASE .. WHEN ... which should do what you
want with unlimited arguments.

Fred

----- Original Message -----
From: "James Stangler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 13 October 2003 17:21
Subject: [Hsqldb-developers] Patch to select correct overloaded method in
functions


I've made a patch to allow the querying of a java function to be more
intelligent about which
method is selected.  How can I submit this patch?

The change is to allow overloaded methods to be used.  In my company, we use
Oracle in production,
but many of us use hsqldb to develop on.  We use the Oracle DECODE function
in our SQL code.  This
function is of the form DECODE(expr, [match, return]+, default) where 'expr'
is an expression.  If
it matches one of the 'match' values, the result is 'return'.  If it doesn't
match any of the
'match' values, the result is 'default'.  There can be one or more pairs of
'match' and 'return'.
I created a class/method to implement this behavior, but the existing hsqldb
logic merely finds
the first method with the same name.  Hence it can't distinguish between
methods with 4 or 6 or 8
arguments and make the appropriate determination.  The patch allows it to
distinguish between the
number of arguments and attempts to determine which method to use if there
is more than one with
the same number of arguments.

jim


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers

Reply via email to