MXS-1625 Figure out multi statement state at startup

Whether or not multi statements are allowed is checked when
the QueryClassifier instance is created.
This commit is contained in:
Johan Wikman
2018-04-04 17:02:00 +03:00
parent 25386c4381
commit 8c0033ccb2
3 changed files with 26 additions and 6 deletions

View File

@ -48,6 +48,11 @@ public:
QueryClassifier(MXS_SESSION* pSession,
mxs_target_t use_sql_variables_in);
bool multi_statements_allowed() const
{
return m_multi_statements_allowed;
}
load_data_state_t load_data_state() const
{
return m_load_data_state;
@ -117,7 +122,8 @@ private:
mxs_target_t m_use_sql_variables_in;
load_data_state_t m_load_data_state;
bool m_have_tmp_tables;
bool m_large_query; /**< Set to true when processing payloads >= 2^24 bytes */
bool m_large_query; /**< Set to true when processing payloads >= 2^24 bytes */
bool m_multi_statements_allowed; /**< Are multi-statements allowed */
SPSManager m_sPs_manager;
};