From f66d7ca83842774e73dad283d576c75d4f1042ad Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Tue, 3 Mar 2020 11:04:54 +0200 Subject: [PATCH] MXS-2508 Fix qc_mysqlembedded It appears that the function db_my_assert may be used but not built into the library. With 10.4.12 there seem to occasionally be superfluous empty table names. --- query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc b/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc index 1b4244b98..403813843 100644 --- a/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc +++ b/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc @@ -77,6 +77,16 @@ #define WF_SUPPORTED #endif +extern "C" +{ + +my_bool _db_my_assert(const char *file, int line, const char *msg) +{ + return true; +} + +} + #if defined (CTE_SUPPORTED) // We need to be able to access private data of With_element that has no // public access methods. So, we use this very questionable method of