Fix ALTER TABLE detection regex
The regular expression expected that the COLUMN keyword was always present.
This commit is contained in:
@ -65,7 +65,7 @@ static const char* avro_index_name = "avro.index";
|
|||||||
static const char* create_table_regex =
|
static const char* create_table_regex =
|
||||||
"(?i)create[a-z0-9[:space:]_]+table";
|
"(?i)create[a-z0-9[:space:]_]+table";
|
||||||
static const char* alter_table_regex =
|
static const char* alter_table_regex =
|
||||||
"(?i)alter[[:space:]]+table.*column";
|
"(?i)alter[[:space:]]+table";
|
||||||
|
|
||||||
/* The router entry points */
|
/* The router entry points */
|
||||||
static MXS_ROUTER *createInstance(SERVICE *service, char **options);
|
static MXS_ROUTER *createInstance(SERVICE *service, char **options);
|
||||||
|
Reference in New Issue
Block a user