mirror of https://github.com/citusdata/citus.git
Check command type in TryToDelegateFunctionCall
parent
9833c07070
commit
2e50306cf8
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue