Skip to content

Cannot create edge with new vertices in the same transaction #7534

@crossknight

Description

@crossknight

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")

Metadata

Metadata

Labels

buglegacy not used anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions