orientechnologies / orientechnologies/orientdb

"insert expression" set field = "upsert expression" is legit?

Open
#9,502 0 comments 0 reactions 1 assignee View on GitHub

@luigidellaquila is already working on this.

Since Jan 11, 2021.

question
Dominant language
Java
Stars
5k
Forks
868
Avg merge
15h 6m
Merged PRs (30d)
18

Description

I want to do something like

insert into TTable1 set
field1 = "test",
field2 = field2 || (update TTable2 set name = "test" upsert return after @rid where name = "test")

returns syntax error, but

insert into TTable1 set
field1 = "test",
field2 = field2 || (select @rid from TTable2 where name = "test")

works fine.
Is it an issue or there are some limits in the engine?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.