Merge pull request #3071 from citusdata/check_command_type

Check command type in TryToDelegateFunctionCall
pull/3072/head
Marco Slot 2019-10-03 15:49:02 +02:00 committed by GitHub
commit fd5c2409a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
{ {