Navigation Menu

Skip to content

Commit

Permalink
add thd local variables "column pruning" and "expression".
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro IKEDA committed Aug 19, 2009
1 parent f525965 commit 89b16cd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 26 additions & 1 deletion ha_groonga.cc
Expand Up @@ -17,6 +17,24 @@ extern "C" {

#include "ha_groonga.h"

static MYSQL_THDVAR_BOOL(
column_pruning,
PLUGIN_VAR_OPCMDARG | PLUGIN_VAR_THDLOCAL,
"enable column pruning.",
NULL,
NULL,
TRUE
);

static MYSQL_THDVAR_BOOL(
expression,
PLUGIN_VAR_OPCMDARG | PLUGIN_VAR_THDLOCAL,
"enable expression.",
NULL,
NULL,
TRUE
);

MRN_CHARSET_MAP mrn_charset_map[] = {
{"utf8", GRN_ENC_UTF8},
{"cp932", GRN_ENC_SJIS},
Expand Down Expand Up @@ -134,6 +152,13 @@ int mrn_plugin_deinit(void *p)
struct st_mysql_storage_engine storage_engine_structure =
{ MYSQL_HANDLERTON_INTERFACE_VERSION };

struct st_mysql_sys_var *mrn_system_variables[] =
{
MYSQL_SYSVAR(column_pruning),
MYSQL_SYSVAR(expression),
NULL
};

mysql_declare_plugin(mroonga)
{
MYSQL_STORAGE_ENGINE_PLUGIN,
Expand All @@ -146,7 +171,7 @@ mysql_declare_plugin(mroonga)
mrn_plugin_deinit,
0x0001,
NULL,
NULL,
mrn_system_variables,
NULL
}
mysql_declare_plugin_end;
Expand Down
1 change: 1 addition & 0 deletions ha_groonga.h
Expand Up @@ -29,6 +29,7 @@ typedef struct _mrn_cond
int order_list_size;
} mrn_cond;


/* handler class */
class ha_groonga: public handler
{
Expand Down

0 comments on commit 89b16cd

Please sign in to comment.