From 9ae3ab522d98b045a9ce44c7f35d76bdc0b63439 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 28 Apr 2017 16:41:47 +0300 Subject: [PATCH] MXS-1196: Turn on Oracle compatibility --- query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc b/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc index 341557d69..c57ae97a8 100644 --- a/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc +++ b/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc @@ -2838,6 +2838,10 @@ int32_t qc_mysql_process_init(void) #endif MXS_NOTICE("Query classifier initialized."); inited = true; + +#if MYSQL_VERSION_MINOR >= 3 + global_system_variables.sql_mode |= MODE_ORACLE; +#endif } }