From e14710ab2bfd073ad31b394cb02a8e89a2514e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 26 Jan 2018 14:04:19 +0200 Subject: [PATCH] Fix ALTER TABLE detection regex The regular expression expected that the COLUMN keyword was always present. --- server/modules/routing/avrorouter/avro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/avrorouter/avro.c b/server/modules/routing/avrorouter/avro.c index 2932b19b6..e9458c764 100644 --- a/server/modules/routing/avrorouter/avro.c +++ b/server/modules/routing/avrorouter/avro.c @@ -65,7 +65,7 @@ static const char* avro_index_name = "avro.index"; static const char* create_table_regex = "(?i)create[a-z0-9[:space:]_]+table"; static const char* alter_table_regex = - "(?i)alter[[:space:]]+table.*column"; + "(?i)alter[[:space:]]+table"; /* The router entry points */ static MXS_ROUTER *createInstance(SERVICE *service, char **options);