Skip to content
Permalink
Browse files
Add test for handling incorrect variable in Set Clause (#160 #165) (#167
)
  • Loading branch information
pdpotter committed Dec 22, 2021
1 parent b3cee6b commit 39c7af008298bd61b962beef343b326f89d4ec29
Showing 2 changed files with 6 additions and 0 deletions.
@@ -373,6 +373,10 @@ SELECT * FROM cypher('cypher_set', $$MATCH (n) SET wrong_var.i = 3$$) AS (a agty
ERROR: undefined reference to variable wrong_var in SET clause
LINE 1: ...ELECT * FROM cypher('cypher_set', $$MATCH (n) SET wrong_var....
^
SELECT * FROM cypher('cypher_set', $$MATCH (n) SET i = 3$$) AS (a agtype);
ERROR: SET clause expects a variable name
LINE 1: ...ELECT * FROM cypher('cypher_set', $$MATCH (n) SET i = 3$$) A...
^
--
-- SET refactor regression tests
--
@@ -133,6 +133,8 @@ SELECT * FROM cypher('cypher_set', $$SET n.i = NULL$$) AS (a agtype);

SELECT * FROM cypher('cypher_set', $$MATCH (n) SET wrong_var.i = 3$$) AS (a agtype);

SELECT * FROM cypher('cypher_set', $$MATCH (n) SET i = 3$$) AS (a agtype);

--
-- SET refactor regression tests
--

0 comments on commit 39c7af0

Please sign in to comment.