question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In OrientDB 2.2 "ALTER PROPERTY" doesnt accept multiple attributes

See original GitHub issue

Expected 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:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mmacfaddencommented, Jul 18, 2016

As soon as we get #6316 taken care of, I can perhaps take a look at this.

0reactions
karolmie1commented, Apr 20, 2017

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found