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

JDBC needs a parameterized query evaluator #90

Closed
nmondal opened this issue Feb 26, 2024 · 1 comment
Closed

JDBC needs a parameterized query evaluator #90

nmondal opened this issue Feb 26, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@nmondal
Copy link
Owner

nmondal commented Feb 26, 2024

See the following cypher queries:

[1]

MATCH (a:Entity), (b:Entity) WHERE a.urn = '%s' AND b.urn = '%s'
CREATE (a)-[r:%s { startTime: datetime(), endTime: null } ]->(b)  
RETURN a,b 

[2]

MATCH (a {urn:'%s'})-[r:%s]-(b {urn:'%s'})
SET r.endTime = datetime()

It takes 3 params. Entity1, Entity2, and a relation name.
But now the ordering gets changed, that is shame.

@nmondal nmondal added the good first issue Good for newcomers label Feb 26, 2024
@nmondal nmondal self-assigned this Feb 26, 2024
@nmondal
Copy link
Owner Author

nmondal commented Feb 26, 2024

This solves it.
670c91e

@nmondal nmondal closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant