Hi,

I am afraid I know the answer to this already ("not supported"), but I wanted to check with you guys. Perhaps someone has smart workaround?

Essentially what I would like to do is something like:

IF condition THEN CREATE FUNCTION ....;

As far as I know, flow control statements are only allowed inside functions/procedures. 
However, CREATE statements are not allowed inside functions/procedure.
So I don't see any way to do what I wrote above.

Notice, I am aware of CREATE OR REPLACE. What I'm looking for is an arbitrary condition test.

Any trick? And/or, any plan to implement something in this direction?

Roberto