mirror of https://github.com/citusdata/citus.git
Adds null check for node in HasRangeTableRef
parent
035aa6eada
commit
a7aee78e85
|
@ -504,6 +504,11 @@ FilterShardsFromPgclass(Node *node, void *context)
|
|||
static bool
|
||||
HasRangeTableRef(Node *node, int *varno)
|
||||
{
|
||||
if (node == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (IsA(node, RangeTblRef))
|
||||
{
|
||||
RangeTblRef *rangeTblRef = (RangeTblRef *) node;
|
||||
|
|
Loading…
Reference in New Issue