MXS-2095: Fix crash on GRANT CREATE TEMPORARY TABLE

The avrorouter classified the GRANT statement as a CREATE TABLE statement.
This commit is contained in:
Markus Mäkelä
2018-11-08 08:31:48 +02:00
parent a9041a74f1
commit 6a8ba999bd
2 changed files with 7 additions and 2 deletions

View File

@ -59,9 +59,9 @@ static const char* avro_index_name = "avro.index";
/** For detection of CREATE/ALTER TABLE statements */
static const char* create_table_regex =
"(?i)create[a-z0-9[:space:]_]+table";
"(?i)^[[:space:]]*create[a-z0-9[:space:]_]+table";
static const char* alter_table_regex =
"(?i)alter[[:space:]]+table";
"(?i)^[[:space:]]*alter[[:space:]]+table";
/* The router entry points */
static MXS_ROUTER *createInstance(SERVICE *service, char **options);