if (args->arg_count != 4) {
snprintf(message, MYSQL_ERRMSG_SIZE, "mroonga_query_expand(): wrong number of arguments: %u for 4",
args->arg_count); goto error;
} if (args->arg_type[0] != STRING_RESULT) {
strcpy(message, "mroonga_query_expand(): " "the 1st argument must be table name as string"); goto error;
} if (args->arg_type[1] != STRING_RESULT) {
strcpy(message, "mroonga_query_expand(): " "the 2nd argument must be term column name as string"); goto error;
} if (args->arg_type[2] != STRING_RESULT) {
strcpy(message, "mroonga_query_expand(): " "the 3nd argument must be expanded term column name as string"); goto error;
} if (args->arg_type[3] != STRING_RESULT) {
strcpy(message, "mroonga_query_expand(): " "the 4th argument must be query as string"); goto error;
}
init->maybe_null = 1;
info = static_cast<mrn::QueryExpandInfo *>(
mrn_my_malloc(sizeof(mrn::QueryExpandInfo),
MYF(MY_WME | MY_ZEROFILL))); if (!info) {
snprintf(message, MYSQL_ERRMSG_SIZE, "mroonga_query_expand(): failed to allocate memory"); goto error;
}
{ constchar *current_db_path = MRN_THD_DB_PATH(current_thd); if (!current_db_path) {
snprintf(message, MYSQL_ERRMSG_SIZE, "mroonga_query_expand(): no current database"); goto error;
}
mrn::Database *db; int error = mrn_db_manager->open(current_db_path, &db); if (error != 0) {
snprintf(message, MYSQL_ERRMSG_SIZE, "mroonga_query_expand(): failed to open database: %s",
mrn_db_manager->error_message()); goto error;
}
info->ctx = mrn_context_pool->pull();
grn_ctx_use(info->ctx, db->get());
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.