No, this doesn’t work - Extends does not override the method declared in a class. You have to use an unused method name or a different parameter list (overloading).
[quote=101107:@Torsten Gaidies]Yes,
why not. Try it, it costs you only a few minutes.[/quote]
and how to?
Like Eli Ott said, i didnt find a method to override/extend the standard classes/methods.
And what happens when you call db.SQLSelect inside your extension function?
(I know the answer)
This works, but only if the method signature is not identical. If you add a second string for example, the compiler will know exactly what to do when you call SQLSelect with two strings vs one string.
When you try clone the method signature, the compiler can’t figure out your intentions. At best you’ll get an ambiguity error, at worst a stack overflow.
The best option is to subclass MySQLCommunityServer and actually overload the method.