apache / apache/age

SQL Command throws Error in cypher.sql

Open
#321 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C
Stars
4.8k
Forks
523
Avg merge
1d 2h
Merged PRs (30d)
9

Description

I came across some commands that throw errors in cypher.sql and I am not sure whether this is expected behavior or not.

I am unsure whether this is okay because the expected and actual results throw log these errors when running this command.

`SELECT * FROM cypher('cypher', 'RETURN 0') AS r(c text);`
`ERROR: a dollar-quoted string constant is expected`
`LINE 1: SELECT * FROM cypher('cypher', 'RETURN 0') AS r(c text);`

`SELECT * FROM cypher('cypher', NULL) AS r(c text);`
`ERROR: a dollar-quoted string constant is expected`
`LINE 1: SELECT * FROM cypher('cypher', NULL) AS r(c text);`

Are these test cases valid? Or should it be changed? like `SELECT * FROM cypher('cypher', $$RETURN 0$$) AS r(c text);`

Also if these test cases are valid then is okay to add a test case like `SELECT * FROM cypher('cypher', ##RETURN 0##) AS r(c text);` since this will throw an error as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.