From 7082edc4eda65348433120fe81b5a9bd5e9bff56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 22 Sep 2017 12:23:40 +0300 Subject: [PATCH] Also extract SQL from COM_STMT_PREPARE COM_STMT_PREPARE contains the plain-text prepared statement so it can be extracted as if it were a COM_QUERY command. --- server/core/modutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/modutil.cc b/server/core/modutil.cc index fb40a646e..5c145e255 100644 --- a/server/core/modutil.cc +++ b/server/core/modutil.cc @@ -108,7 +108,7 @@ modutil_extract_SQL(GWBUF *buf, char **sql, int *length) { unsigned char *ptr; - if (!modutil_is_SQL(buf)) + if (!modutil_is_SQL(buf) && !modutil_is_SQL_prepare(buf)) { return 0; }