MXS-1406 Report CALL operation
Basically it would be trivial to report far more operations explicitly, but for the fact that the values in qc_query_op_t currently, quite unnecessarily, form a bitmask. In 2.2 that is no longer the case, so other operations will be added there.
This commit is contained in:
@ -1946,7 +1946,7 @@ void maxscaleAlterTable(Parse *pParse, /* Parser context. */
|
||||
exposed_sqlite3SrcListDelete(pParse->db, pSrc);
|
||||
}
|
||||
|
||||
void maxscaleCall(Parse* pParse, SrcList* pName)
|
||||
void maxscaleCall(Parse* pParse, SrcList* pName, ExprList* pExprList)
|
||||
{
|
||||
QC_TRACE();
|
||||
|
||||
@ -1955,8 +1955,15 @@ void maxscaleCall(Parse* pParse, SrcList* pName)
|
||||
|
||||
info->status = QC_QUERY_PARSED;
|
||||
info->type_mask = QUERY_TYPE_WRITE;
|
||||
info->operation = QUERY_OP_CALL;
|
||||
|
||||
if (pExprList)
|
||||
{
|
||||
update_field_infos_from_exprlist(info, pExprList, 0, NULL);
|
||||
}
|
||||
|
||||
exposed_sqlite3SrcListDelete(pParse->db, pName);
|
||||
exposed_sqlite3ExprListDelete(pParse->db, pExprList);
|
||||
}
|
||||
|
||||
void maxscaleCheckTable(Parse* pParse, SrcList* pTables)
|
||||
|
||||
Reference in New Issue
Block a user