diff --git a/server/core/query_classifier.cc b/server/core/query_classifier.cc index 6ae829171..991dd5907 100644 --- a/server/core/query_classifier.cc +++ b/server/core/query_classifier.cc @@ -330,6 +330,13 @@ public: { m_canonical = mxs::get_canonical(m_pStmt); + if (modutil_is_SQL_prepare(pStmt)) + { + // P as in prepare, and appended so as not to cause a + // need for copying the data. + m_canonical += ":P"; + } + QC_STMT_INFO* pInfo = this_thread.pInfo_cache->get(m_canonical); if (pInfo)