Skip to content

Commit f8fb72e

Browse files
committed
Add brackets to scope some case statements
This fixes some compile-time errors that occur if PostgreSQL is configured with the --with-llvm option.
1 parent 5967187 commit f8fb72e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/backend/parser/cypher_label_expr.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ List *get_label_expr_relations(cypher_label_expr *label_expr,
260260

261261
case LABEL_EXPR_TYPE_AND:
262262
case LABEL_EXPR_TYPE_OR:
263+
{
263264
List *reloids;
264265
List *(*merge_lists)(List *, const List *);
265266
ListCell *lc;
@@ -322,7 +323,7 @@ List *get_label_expr_relations(cypher_label_expr *label_expr,
322323
}
323324
}
324325
return reloids;
325-
326+
}
326327
default:
327328
elog(ERROR, "invalid cypher_label_expr type");
328329
return NIL;
@@ -378,6 +379,7 @@ char *label_expr_relname(cypher_label_expr *label_expr, char label_expr_kind)
378379
return (char *)strVal(linitial(label_expr->label_names));
379380

380381
case LABEL_EXPR_TYPE_AND:
382+
{
381383
/*
382384
* generates a name for intersection relation
383385
* i.e. for CREATE (:A:B:C), _agr_ABC
@@ -401,6 +403,7 @@ char *label_expr_relname(cypher_label_expr *label_expr, char label_expr_kind)
401403
pfree(relname_strinfo);
402404

403405
return relname;
406+
}
404407

405408
case LABEL_EXPR_TYPE_OR:
406409
elog(ERROR, "label expression type OR cannot have a table");

0 commit comments

Comments
 (0)