Fuction gpdb_syntax_error_log_print has been fixed. Test and test cases have to be organized.