Check command type in TryToDelegateFunctionCall

pull/3071/head
Marco Slot 2019-10-03 15:37:15 +02:00
parent 9833c07070
commit 2e50306cf8
1 changed files with 6 additions and 0 deletions

View File

@ -141,6 +141,12 @@ TryToDelegateFunctionCall(Query *query, bool *hasExternParam)
return NULL; return NULL;
} }
if (query->commandType != CMD_SELECT)
{
/* not a SELECT */
return NULL;
}
joinTree = query->jointree; joinTree = query->jointree;
if (joinTree == NULL) if (joinTree == NULL)
{ {