You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error from stacktrace indicates a badly formed CYPHER statement
"START pc=node:DN_TYPES(class="mydomain.model.CompoundItem") WHERE (pc.id = "item1" and pc.owner = cont1) RETURN pc"
maybe missing quotes around the "cont1".
I think that the problem might be the if statement at line 193 of Neo4jUtils.
it tests if the storedValue is an instance of a String, and inserts quotes if so, else no quotes.
However, in the case of the compound PK, the PK is stored as a String (I think).
So an additional test to catch the PK case needs to be added.
Am not sure how to test for the PK case, happy to provide a patch if I can get some advice.
The text was updated successfully, but these errors were encountered:
replace line 193:
if (storedValue instanceof String)
with:
if (storedValue instanceof String || !cmd.usesSingleFieldIdentityClass())
this enables the compound identity to work, but not sure if it breaks any other situations
it shouldn't do, but I don't have a large test suit to check it on.
version: 5.1.0-m1
test case: https://github.com/dhakehurst/test-jdo, SimpleTest.CompoundIdentity()
Error from stacktrace indicates a badly formed CYPHER statement
"START pc=node:DN_TYPES(class="mydomain.model.CompoundItem") WHERE (pc.id = "item1" and pc.owner = cont1) RETURN pc"
maybe missing quotes around the "cont1".
I think that the problem might be the if statement at line 193 of Neo4jUtils.
it tests if the storedValue is an instance of a String, and inserts quotes if so, else no quotes.
However, in the case of the compound PK, the PK is stored as a String (I think).
So an additional test to catch the PK case needs to be added.
Am not sure how to test for the PK case, happy to provide a patch if I can get some advice.
The text was updated successfully, but these errors were encountered: