mirror of https://github.com/citusdata/citus.git
list case
parent
0fb3b6a725
commit
a375543ca8
|
@ -218,12 +218,8 @@ bool ExtractIndexesForConstaints(List *fromList, List *rtable,
|
||||||
{
|
{
|
||||||
ereport(DEBUG5, (errmsg("******")));
|
ereport(DEBUG5, (errmsg("******")));
|
||||||
ListCell *fromExprCell;
|
ListCell *fromExprCell;
|
||||||
/* TODO: is this case even possible | fromlist | > 1. */
|
|
||||||
if(list_length(fromList) > 1)
|
// Check the first element of the from clause, the rest is already handled
|
||||||
{
|
|
||||||
ereport(DEBUG5, (errmsg("ExtractIndexesForConstaints: Fromlist length > 1")));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
foreach(fromExprCell, fromList)
|
foreach(fromExprCell, fromList)
|
||||||
{
|
{
|
||||||
Node *fromElement = (Node *) lfirst(fromExprCell);
|
Node *fromElement = (Node *) lfirst(fromExprCell);
|
||||||
|
|
Loading…
Reference in New Issue