mirror of https://github.com/citusdata/citus.git
Merge pull request #3071 from citusdata/check_command_type
Check command type in TryToDelegateFunctionCallpull/3072/head
commit
fd5c2409a5
|
@ -141,6 +141,12 @@ TryToDelegateFunctionCall(Query *query, bool *hasExternParam)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (query->commandType != CMD_SELECT)
|
||||
{
|
||||
/* not a SELECT */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
joinTree = query->jointree;
|
||||
if (joinTree == NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue