@@ -244,14 +244,11 @@ ERROR: operator does not exist: postgraph.graphid = postgraph.graphid
244
244
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
245
245
-- Property Constraint in EXISTS
246
246
MATCH (u) WHERE EXISTS((u)-[]->({id: "middle"})) RETURN u;
247
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
248
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
247
+ ERROR: MATCH cannot be the last clause in a cypher statement
249
248
MATCH (u) WHERE EXISTS((u)-[]->({id: "not a valid id"})) RETURN u;
250
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
251
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
249
+ ERROR: MATCH cannot be the last clause in a cypher statement
252
250
MATCH (u) WHERE EXISTS((u)-[]->({id: NULL})) RETURN u;
253
- ERROR: operator does not exist: postgraph.gtype @> postgraph.gtype
254
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
251
+ ERROR: MATCH cannot be the last clause in a cypher statement
255
252
-- Exists checks for a loop. There shouldn't be any.
256
253
MATCH (u)-[e]->(v) WHERE EXISTS((u)-[e]->(u)) RETURN u, e, v;
257
254
ERROR: operator does not exist: postgraph.graphid = postgraph.graphid
@@ -331,8 +328,7 @@ MATCH (u) RETURN case WHEN EXISTS(MATCH (u)-[]->() RETURN 1) THEN 1 ELSE 2 END;
331
328
ERROR: operator does not exist: postgraph.graphid = postgraph.graphid
332
329
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
333
330
MATCH (u) RETURN case WHEN EXISTS((u)-[]->()) THEN 1 ELSE 2 END;
334
- ERROR: operator does not exist: postgraph.graphid = postgraph.graphid
335
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
331
+ ERROR: MATCH cannot be the last clause in a cypher statement
336
332
/*
337
333
EXPLAIN
338
334
SELECT *
@@ -446,12 +442,13 @@ LINE 1: ORDER BY n, p, m, q;
446
442
MATCH (n:opt_match_v), (m:opt_match_v)
447
443
WHERE id(n) <> id(m)
448
444
OPTIONAL MATCH (n)-[r]->(p), (m)-[s]->(q)
449
- RETURN n.name AS n, type(r)
445
+ RETURN n.name AS n, type(r),
450
446
m.name AS m, type(s)
451
447
ORDER BY n, p, m, q;
452
- ERROR: syntax error at or near "m"
453
- LINE 5: m.name AS m, type(s)
454
- ^
448
+ ERROR: operator is not unique: postgraph.gtype <> postgraph.gtype
449
+ LINE 2: WHERE id(n) <> id(m)
450
+ ^
451
+ HINT: Could not choose a best candidate operator. You might need to add explicit type casts.
455
452
CREATE (u {name: "orphan"}) CREATE (u1 {name: "F"})-[u2:e1]->(u3 {name: "T"}) RETURN u1, u2, u3;
456
453
u1 | u2 | u3
457
454
-------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------
@@ -460,12 +457,10 @@ CREATE (u {name: "orphan"}) CREATE (u1 {name: "F"})-[u2:e1]->(u3 {name: "T"}) RE
460
457
461
458
-- Querying NOT EXISTS syntax
462
459
MATCH (f),(t) WHERE NOT EXISTS((f)-[]->(t)) RETURN f.name, t.name;
463
- ERROR: operator does not exist: postgraph.graphid = postgraph.graphid
464
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
460
+ ERROR: MATCH cannot be the last clause in a cypher statement
465
461
-- Querying EXISTS syntax
466
462
MATCH (f),(t) WHERE EXISTS((f)-[]->(t)) RETURN f.name, t.name;
467
- ERROR: operator does not exist: postgraph.graphid = postgraph.graphid
468
- HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
463
+ ERROR: MATCH cannot be the last clause in a cypher statement
469
464
--
470
465
-- Constraints and WHERE clause together
471
466
--
@@ -485,9 +480,7 @@ HINT: No operator matches the given name and argument types. You might need to
485
480
--
486
481
-- need a following RETURN clause
487
482
MATCH (n:v);
488
- ERROR: syntax error at or near ";"
489
- LINE 1: MATCH (n:v);
490
- ^
483
+ ERROR: MATCH cannot be the last clause in a cypher statement
491
484
--Invalid Variables
492
485
MATCH (a)-[]-()-[]-(a:v1) RETURN a;
493
486
ERROR: variable a already exists
0 commit comments