-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
SQL: Mandatory property is not using default value instead errors #1919
Comments
I'm unable to reproduce the problem. I've got the error on both studio and test code. From server log:
on test:
|
I don't understand, the error you post is the problem. Maybe I was unclear in my description: The property should be created automatically using the default value, if none is given, then |
Ok, I misread the issue. |
Hmm, what is the difference between the attributes |
We could look up to other DBMS, but it makes sense that mandatory means, I'm expecting the property. NotNull means mandatory + can't be null (like with a RDBMS). |
I am fine either way. But the docs need updating to be more clear (note to self). FYI: There is also a workaround:
|
ArcadeDB Version:
ArcadeDB Server v24.11.2 (build 055592c73d27d894c26f3faaf7df22e15c28f03d/1733838531445/main)
OS and JDK Version:
Running on Linux 6.2.0-26-generic - OpenJDK 64-Bit Server VM 17.0.1
The docs state that the default value of properties is
null
. Now, instantiating a type with amandatory
property but not providing a property value leads to an error instead of using the default value (null
if none explicitly set) for this property.Expected behavior
A record is added and the mandatory property is set with its default value.
Actual behavior
Steps to reproduce
The text was updated successfully, but these errors were encountered: