Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apoc.cypher.runFile() - Unexpected behaviour with commented ";" #3798

Closed
bastienhubert opened this issue Oct 18, 2023 · 0 comments
Closed

apoc.cypher.runFile() - Unexpected behaviour with commented ";" #3798

bastienhubert opened this issue Oct 18, 2023 · 0 comments

Comments

@bastienhubert
Copy link

Expected Behavior (Mandatory)

In a cypher file, when I comment a line containing ";", apoc.cypher.runFile() should execute all the other statements contained in the file.

Actual Behavior (Mandatory)

When I comment a line containing a ";", the statements below this line are not executed by the procedure.

How to Reproduce the Problem

Steps (Mandatory)

  1. Take a simple cypher file:
 RETURN "Step 1";
 RETURN "Step 2";
 RETURN "Step 3";
  1. Comment a statement in the file:
 RETURN "Step 1";
 // RETURN "Step 2";
 RETURN "Step 3";
  1. Run this file using apoc.cypher.runFile() => the "step 3" statement is not executed anymore

  2. Remove the semicolon of the commented line:

 RETURN "Step 1";
 // RETURN "Step 2"
 RETURN "Step 3";
  1. Run this file using apoc.cypher.runFile() => the "step 3" statement is now executed

Specifications (Mandatory)

Currently used versions

Versions

  • OS: MacOs Sonoma 14.0
  • Neo4j: 5.12
  • Neo4j-Apoc-Extended: 5.12.0

(This issue also occurs in Neo4j 4.4.4 with APOC 4.4.4)

@bastienhubert bastienhubert changed the title apoc.cypher.runFile() - Unexpected behaviour with ";" apoc.cypher.runFile() - Unexpected behaviour with commented ";" Oct 18, 2023
@vga91 vga91 self-assigned this Oct 18, 2023
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue Mar 14, 2024
RobertoSannino pushed a commit that referenced this issue Mar 14, 2024
…ted ; (#3993)

* Fixes #3798: apoc.cypher.runFile() - Unexpected behaviour with commented ;

* removed unused imports
vga91 added a commit that referenced this issue Apr 2, 2024
… commented ; (#3993)

* Fixes #3798: apoc.cypher.runFile() - Unexpected behaviour with commented ;

* removed unused imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants