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

[Bug]: Neo4j Constraint action should use 5.0 syntax #1856

Closed
mattcasters opened this issue Dec 1, 2022 · 0 comments
Closed

[Bug]: Neo4j Constraint action should use 5.0 syntax #1856

mattcasters opened this issue Dec 1, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@mattcasters
Copy link
Contributor

Apache Hop version?

2.2.0

Java version?

openjdk version "11.0.17" 2022-10-18

Operating system

Linux

What happened?

The Neo4j Constraint action throws an error against Neo4j 5.x databases:

2022/12/01 09:42:10 - Neo4j Constraint - ERROR: Error creating constraint with cypher [CREATE CONSTRAINT pk_person_id IF NOT EXISTS ON (n:Person) ASSERT  n.ID IS UNIQUE ]
2022/12/01 09:42:10 - Neo4j Constraint - ERROR: org.neo4j.driver.exceptions.ClientException: Invalid constraint syntax, ON and ASSERT should not be used. Replace ON with FOR and ASSERT with REQUIRE. (line 1, column 1 (offset: 0))
2022/12/01 09:42:10 - Neo4j Constraint - "CREATE CONSTRAINT pk_person_id IF NOT EXISTS ON (n:Person) ASSERT  n.ID IS UNIQUE"

Issue Priority

Priority: 1

Issue Component

Component: Graph

@mattcasters mattcasters self-assigned this Dec 1, 2022
@hansva hansva closed this as completed in e020742 Dec 1, 2022
hansva added a commit that referenced this issue Dec 1, 2022
Fixes #1856 : Neo4j Constraint action should use 5.0 syntax
@hansva hansva added this to the 2.3 milestone Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants