Fix issue where log() method faild when using the MySQL datasource.