In OrientDB 2.2 "ALTER PROPERTY" doesnt accept multiple attributes
See original GitHub issueExpected behavior and actual behavior
In OrientDB 2.1 this was possible:
ALTER PROPERTY someclass.name MANDATORY TRUE NOTNULL TRUE
But in OrientDB 2.2 same command ends with error message:
Encountered " <IDENTIFIER> "NOTNULL "" at line 1, column 46.
Was expecting one of:
<EOF>
";" ...
DB name="somedb"
DB name="somedb"
Steps to reproduce the problem
See behaviour.
Important Questions
Runninng Mode
- Embedded, using PLOCAL access mode
- Embedded, using MEMORY access mode
- Remote
Misc
- I have a distributed setup with multiple servers. How many?
- I’m using the Enterprise Edition
OrientDB Version
- v2.0.x - Please specify last number:
- v2.1.x - Please specify last number:
- v2.2.x - Please specify last number: 3
Operating System
- Linux
- MacOSX
- Windows
- Other Unix
- Other, name?
Java Version
- 6
- 7
- 8
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Alter Cluster · OrientDB Manual
Beginning with version 2.2, you can use the wildcard * to update multiple clusters together. <attribute-name> Defines the attribute you want to change....
Read more >SQL - Alter Class · OrientDB Manual
SQL - ALTER CLASS. Updates attributes on an existing class in the schema. ... The alteration will not take into account edge connections...
Read more >Enable SQL CREATE PROPERTY to set ATTRIBUTES such ...
Presently quite a few commands are required to create a property in a class that is "not null", "mandatory", or "read only".
Read more >OrientDB - Quick Guide - Tutorialspoint
There were several NoSQL databases in the market before OrientDB, ... set LOG_FILE = %ORIENTDB_HOME%/config/orientdb-server-log.properties set ...
Read more >How do I configure OrientDB ETL to import an edge list with ...
It's possible that the specific edge (id1 -> id2) already exists. Is it possible to only update the edge attributes in this case?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As soon as we get #6316 taken care of, I can perhaps take a look at this.
Following query does not work, due to REGEXP
CREATE PROPERTY Account.Gender STRING (MANDATORY TRUE, MAX 20, REGEXP "[M|F]")
This one does:
CREATE PROPERTY Account.Gender STRING (MANDATORY TRUE, MAX 20)
Confirmed with other user: http://stackoverflow.com/questions/43498303/does-regexp-constraint-work-in-orientdb/43499225 as occurring in orientdb-2.2.18
This is part of this issue, right?