fix function used in mysql acceptance test when binlog=ON

This was raised by @phe1129.

When `binlog` is enabled and the `log_bin_trust_function_creators` system variable
is OFF (default=OFF), MySQL requires Create Function DDL to specify whether `DETERMINISTIC`,
`NO SQL`, or `READS SQL DATA` in its declaration. Otherwise the server gives exception.
For more details: http://dev.mysql.com/doc/refman/5.5/en/stored-programs-logging.html
Merge pull request #187 from benilovj/fix-mysql-test-function

fix function used in mysql acceptance test to work with enabled binlog