We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CREATE CLASS TForm CREATE PROPERTY `TForm`.`answer` EMBEDDEDMAP STRING ALTER PROPERTY `TForm`.`answer` mandatory true ALTER PROPERTY `TForm`.`answer` notNull true UPDATE TForm SET answer.name = :answername UPSERT WHERE id = :id
Returns
com.orientechnologies.orient.core.exception.OValidationException: The field 'TForm.answer' is mandatory, but not found on record
I can't do like
UPDATE TForm SET answer = {"name" :answername} UPSERT WHERE id = :id
Because it rewrites all data in answer.
The text was updated successfully, but these errors were encountered:
Hi @freeart
Good point, probably we can leverage the schema here and make the first statement work. I'll check it ASAP and let you know
Thanks
Luigi
Sorry, something went wrong.
Automatic initialisation of embedded collections on SQL UPDATE
c6c4e55
Resolves: #8701
5992086
I just pushed a fix, it will be released with V 3.0.13
luigidellaquila
No branches or pull requests
OrientDB Version: 3.1.0 from develop branch
Java Version: docker openjdk:8-jdk-alpine
OS: docker openjdk:8-jdk-alpine
Steps to reproduce
Returns
I can't do like
Because it rewrites all data in answer.
The text was updated successfully, but these errors were encountered: