polymorphism alternative for MySQL stored procedures -


I am porting some stored procedure from MySQL to Informix, but I have two stored procedures on the infographic that have the same name and different I <<

parameters.

In MySQL, I can not create two spaces with the same name, and can not even create an SP with the default values ​​in the parameter.

So, get someone out there, is there a hacker or black magic that can help me solve this problem?

Thank you.

We send an application sorting the same problem from IOSX to ISSSX.

The problem was solved by adding parameter count to the process name ...

  INFORMIX MySQL ----- -------- ------------ --------------------------- minutes (int A, Int B) = & gt; Min2 (int a, int b) min (int a, int b, int c) = & gt; Min3 (int a, int b, int c)  

This works because the calling application (Perl script) always knew how many parameters were there.


Comments