MXS-1196: Register if variables are used in function calls

This commit is contained in:
Johan Wikman
2017-05-16 11:14:51 +03:00
parent 593070b865
commit e7ef6c855f
2 changed files with 21 additions and 14 deletions

View File

@ -2008,7 +2008,7 @@ void maxscaleAlterTable(Parse *pParse, /* Parser context. */
exposed_sqlite3SrcListDelete(pParse->db, pSrc);
}
void maxscaleCall(Parse* pParse, SrcList* pName)
void maxscaleCall(Parse* pParse, SrcList* pName, int uses_variables)
{
QC_TRACE();
@ -2017,6 +2017,10 @@ void maxscaleCall(Parse* pParse, SrcList* pName)
info->status = QC_QUERY_PARSED;
info->type_mask = QUERY_TYPE_WRITE;
if (uses_variables)
{
info->type_mask |= QUERY_TYPE_USERVAR_READ;
}
exposed_sqlite3SrcListDelete(pParse->db, pName);
}