shibakentoku
null+****@clear*****
Wed Nov 20 02:19:16 JST 2013
shibakentoku 2013-11-20 02:19:16 +0900 (Wed, 20 Nov 2013) New Revision: b079e4902568ecb8e6a413e678965b8470e99a50 https://github.com/mroonga/mroonga/commit/b079e4902568ecb8e6a413e678965b8470e99a50 Message: Add error for mrn_snippet_prepare. Modified files: udf/mrn_udf_snippet.cpp Modified: udf/mrn_udf_snippet.cpp (+8 -0) =================================================================== --- udf/mrn_udf_snippet.cpp 2013-11-19 12:06:11 +0900 (07521ca) +++ udf/mrn_udf_snippet.cpp 2013-11-20 02:19:16 +0900 (27ebee9) @@ -70,6 +70,14 @@ static my_bool mrn_snippet_prepare(st_mrn_snip_info *snip_info, UDF_ARGS *args, } } if (mrn::encoding::set(ctx, cs)) { + if (args->arg_type[3] == STRING_RESULT) { + snprintf(message, MYSQL_ERRMSG_SIZE, + "Charset: <%s> is not supported", args->args[3]); + } else { + uint charset_id = static_cast<uint>(*((long long *) args->args[3])); + snprintf(message, MYSQL_ERRMSG_SIZE, + "Charset ID: <%u> is not supported", charset_id); + } goto error; } -------------- next part -------------- HTML����������������������������...ダウンロード