MXS-1295: Add strict_sp_calls
parameter
The new parameter allows the session to be "locked" to the master server after a stored procedure is called. This will keep the session state consistent if the stored procedure call modifies the state of the session.
This commit is contained in:
@ -355,6 +355,11 @@ bool check_for_multi_stmt(GWBUF *buf, void *protocol, mysql_server_cmd_t packet_
|
||||
return rval;
|
||||
}
|
||||
|
||||
bool check_for_sp_call(GWBUF *buf, mysql_server_cmd_t packet_type)
|
||||
{
|
||||
return packet_type == MYSQL_COM_QUERY && qc_get_operation(buf) == QUERY_OP_CALL;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Determine the type of a query
|
||||
*
|
||||
|
Reference in New Issue
Block a user