-
Notifications
You must be signed in to change notification settings - Fork 872
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
Cannot create edge with new vertices in the same transaction #7534
Comments
hi @crossknight do you have a script to reproduce it? I just tried to run that batch script with orientjs against 2.2.22 and it worked. Thanks |
Umm,, Sorry, It's a test case from my unit test so I don't have a script to reproduce it. Message (Show as string for easily read) Message description Tell me if I do something wrong, Thank you. |
hi @crossknight are you using any drivers? or just writing over the binary protocol? which version of OrientDB exactly? |
I just writing over the binary protocol. version of OrientDB is 2.2.22. |
hi @crossknight are you sending parameters in the batch script or only the plain text batch? |
I'm not sure. |
From here http://orientdb.com/docs/2.2.x/Network-Binary-Protocol-Commands.html#script are you sending only the text or also the parameters? |
I'm sending only the text. I set has-simple-parameters to 0 (false) and has-complex-parameters to 0 (false). |
that is strange i was not able to reproduce it via studio with batch and with |
hi @crossknight Is that a fresh db? if not can you provide this db, so i can try to reproduce it? |
I changed to fresh new db and it works fine. |
Sure you can send it to me here if it's small [email protected] Thanks |
I sent you an email with the problem db. |
I found the command that cause this problem. then these following commands will be failed |
ok Thanks |
Hi @crossknight I pushed a fix for this a couple of days ago, the fix will be released with 2.2.23 in a few hours Thanks Luigi |
OrientDB Version: 2.2.5 - 2.2.22
Java Version: 8 update 131
OS: macOS, FreeBSD
Expected behavior
Commit with these commands successfully via binary protocol (version 2.2.4)
BEGIN;
CREATE VERTEX V SET num = 13
CREATE VERTEX V SET num = 14
CREATE EDGE E FROM (SELECT FROM V WHERE num = 13) TO (SELECT FROM V WHERE num = 14)
COMMIT;
Actual behavior
Commit failed
com.orientechnologies.orient.core.exception.OCommandExecutionException: No edge has been created because no source vertices
Steps to reproduce
Send commands
BEGIN;
CREATE VERTEX V SET num = 13
CREATE VERTEX V SET num = 14
CREATE EDGE E FROM (SELECT FROM V WHERE num = 13) TO (SELECT FROM V WHERE num = 14)
COMMIT;
via binary protocol (request command script "s", script language "SQL")
The text was updated successfully, but these errors were encountered: