How to use user defined function as boolean expression ?
For example function REGEXP_LIKE() used as boolean expression, right?
... WHERE REGEXP_LIKE() ...
But how to make such for user defined function? When my function returns BOOLEAN type and then, when I call this function, I got error because pure SQL can't use BOOLEAN type.
P.S.
So, I do this: my function returns VARCHAR2 type: that is 'TRUE' or 'FALSE' and then in SQL I use: ... WHERE my_function() = 'TRUE' ...
This is right way for simulate boolean type? or exists more better solutions ?