Statements making use of user-defined functions are not safe for replication.
For an example, see
sql/udf_example.cc in the source tree. For a collection of existing UDFs go to the UDF Repository on GitHub.
There are alternative ways to add a new function: writing a native function, which requires modifying and compiling the server source code; or writing a stored function.
UDF Regular Expressions for maria dbI've already asked here http://stackoverflow.com/questions/6659030/udf-regu...