qc_sqlite: Pick out the name in an EXECUTE stmt
This commit is contained in:
@ -1625,6 +1625,13 @@ void maxscaleExecute(Parse* pParse, Token* pName)
|
|||||||
info->status = QC_QUERY_PARSED;
|
info->status = QC_QUERY_PARSED;
|
||||||
info->types = QUERY_TYPE_WRITE;
|
info->types = QUERY_TYPE_WRITE;
|
||||||
info->is_real_query = true;
|
info->is_real_query = true;
|
||||||
|
|
||||||
|
info->prepare_name = MXS_MALLOC(pName->n + 1);
|
||||||
|
if (info->prepare_name)
|
||||||
|
{
|
||||||
|
memcpy(info->prepare_name, pName->z, pName->n);
|
||||||
|
info->prepare_name[pName->n] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void maxscaleExplain(Parse* pParse, SrcList* pName)
|
void maxscaleExplain(Parse* pParse, SrcList* pName)
|
||||||
|
@ -2827,7 +2827,7 @@ execute_variables ::= VARIABLE.
|
|||||||
execute_variables ::= execute_variables COMMA VARIABLE.
|
execute_variables ::= execute_variables COMMA VARIABLE.
|
||||||
|
|
||||||
execute_variables_opt ::= .
|
execute_variables_opt ::= .
|
||||||
execute_variables_opt ::= execute_variables.
|
execute_variables_opt ::= USING execute_variables.
|
||||||
|
|
||||||
execute ::= EXECUTE nm(X) execute_variables_opt. {
|
execute ::= EXECUTE nm(X) execute_variables_opt. {
|
||||||
maxscaleExecute(pParse, &X);
|
maxscaleExecute(pParse, &X);
|
||||||
|
Reference in New Issue
Block a user