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

Record ID Problem in Querys #4480

Closed
k3zi opened this issue Jun 28, 2015 · 2 comments
Closed

Record ID Problem in Querys #4480

k3zi opened this issue Jun 28, 2015 · 2 comments

Comments

@k3zi
Copy link

k3zi commented Jun 28, 2015

Why could a query like this not run?

INSERT INTO STMComment CONTENT { 'message': '@kdogisthebest test', 'date': 1435468766, 'stream': #13:5, 'user': #12:1, 'reply': #18:94}

Returns: com.orientechnologies.orient.core.index.OIndexException: Error during put of key - value entry
--> java.lang.ClassCastException: java.lang.String cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable

I receive this on the Studio & on the client side. I'm running OrientDB Server v2.0.10 on Centos 6.6

@k3zi k3zi closed this as completed Jun 28, 2015
@k3zi k3zi reopened this Jun 28, 2015
@k3zi k3zi closed this as completed Jun 28, 2015
@k3zi k3zi reopened this Jun 29, 2015
@k3zi
Copy link
Author

k3zi commented Jun 29, 2015

I've upgraded to 2.0.11 and even tried the develop branch. Nether solve this issue. If I just:

INSERT INTO STMComment CONTENT { 'message': '@kdogisthebest test', 'date': 1435468766}

than everything works fine.

@k3zi
Copy link
Author

k3zi commented Jun 29, 2015

Found out I had added an index on the stream LINK. Maybe should be an enhancement, to throw an error, since it shouldn't be possible to add an index on a LINK property.

@k3zi k3zi closed this as completed Jun 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant