Uploaded image for project: 'Apache AGE'
  1. Apache AGE
  2. AGE2-578

[Apache AGE] One line comments using -- cause ERROR eg --this is a comment

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: To Do
    • Minor
    • Resolution: Unresolved
    • None
    • 0.6.0

    Description

      Comments in Cypher block using /* comment like this */ are ignored as expected
      but --comments like these
      cause ERROR. See examples below

      This works as expected

      select * from cypher('agc_graph',$$
      return 'hello' /* ignore this comment */
      $$) as (hi agtype);

      hi
      ---------
      "hello"
      (1 row)

      This does not work as expected

      postgres=#
      select * from cypher('agc_graph',$$
      return 'hello' – ignore this comment
      $$) as (hi agtype);

      ERROR: syntax error at or near "this"
      LINE 2: return 'hello' – ignore this comment

      Attachments

        Activity

          People

            Unassigned Unassigned
            fagan Joe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: