MXS-2026 Keep COM_QUERY and COM_STMT_PREPARE separate

This commit is contained in:
Johan Wikman
2018-08-27 14:16:07 +03:00
parent cb6096f84d
commit 2f7ed85b3f

View File

@ -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)