Skip to content

Commit

Permalink
chore: Clear unnecessary message.
Browse files Browse the repository at this point in the history
  • Loading branch information
emotionbug committed Mar 24, 2023
1 parent 7d674d4 commit f5217b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/backend/executor/execCypherDelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,6 @@ ExecDeleteGraph(ModifyGraphState *mgstate, TupleTableSlot *slot)
elem = ExecEvalExpr(gde->es_elem, econtext, &isNull);
if (isNull)
{
/*
* This assumes that there are only variable references in the
* target list.
*/
if (type == EDGEARRAYOID)
continue;
else
ereport(NOTICE,
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
errmsg("skipping deletion of NULL graph element")));

continue;
}

Expand Down
2 changes: 0 additions & 2 deletions src/test/regress/expected/cypher_dml.out
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,6 @@ DELETE r;
MATCH (a {name: 'agensgraph'}), (g {name: 'bitnine'})
OPTIONAL MATCH (a)-[r:made_by]-(g)
DELETE r;
NOTICE: skipping deletion of NULL graph element
MATCH (a) DETACH DELETE a;
-- AG-163 : DELETE plan passes 'edge' variable to the next plan.
CREATE ({name:'AG-163'});
Expand Down Expand Up @@ -2109,7 +2108,6 @@ MATCH (a:v1)
DELETE a
DETACH DELETE a
DELETE a;
NOTICE: skipping deletion of NULL graph element
MATCH (a:v1) RETURN a;
a
---
Expand Down

0 comments on commit f5217b0

Please sign in to comment.