Overloading Function names [message #25589] |
Thu, 18 January 2007 16:42 |
Eclipse User |
|
|
|
Originally posted by: francine.grimmer.ncr.com
We are seeing a problem if we have an overloaded function name: When we
click on the Edit from the drop down menu, it doesn't load the correct
function.
If we define two functions (function1 and function2) with the same name
(TEST) yet different sets of parameters and different specific names, they
both show up in the DSE navigator, yet when I click on function2, it loads
the Routine function1. If you look at the
SQLDevToolsUtil.getProcIdentifier, it creates a ProcIdentifier based on
the name of the sqlobject and the ModelUtil.findProcedureObject will
always return the first Function it finds with the name. In this case it
is always function1, even when I right click on function2 and choose Edit.
Besides the parameter list that will differ between the two functions,
the Specific Name must also be unique. There needs to be code that looks
for a Function based on its specific name and not the Name.
Should I enter a bug report for this?
-francine
|
|
|
Powered by
FUDForum. Page generated in 0.02568 seconds