Hi,
My OrientDB Server v2.0-SNAPSHOT (build 1)
orientdb {GratefulDeadConcerts}> info class ouser
Class................: OUser
Super class..........: OIdentity
Default cluster......: ouser (id=5)
Supported cluster ids: [5]
Properties:
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
NAME | TYPE | LINKED TYPE/CLASS
| MANDATORY | READONLY | NOT NULL | MIN | MAX | COLLATE |
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
name | STRING | null
| true | false | true | | | ci |
password | STRING | null
| true | false | true | | | default |
roles | LINKSET | ORole
| false | false | false | | | default |
status | STRING | null
| true | false | true | | | default |
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
Indexes (1 altogether):
-------------------------------+----------------+
NAME | PROPERTIES |
-------------------------------+----------------+
OUser.name | name |
-------------------------------+----------------+
Good! Next I do basic authorization and then send
request
http://localhost:2480/command/GratefulDeadConcerts/sql/create%20property%20ouser.zzz%20String
And got response: {"result":[{"@type":"d","@version":0,"value":5}]}
Nice! But when I try get information about my class, I don`t see new
property "zzz"
orientdb {GratefulDeadConcerts}> info class ouser
Class................: OUser
Super class..........: OIdentity
Default cluster......: ouser (id=5)
Supported cluster ids: [5]
Properties:
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
NAME | TYPE | LINKED TYPE/CLASS
| MANDATORY | READONLY | NOT NULL | MIN | MAX | COLLATE |
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
name | STRING | null
| true | false | true | | | ci |
password | STRING | null
| true | false | true | | | default |
roles | LINKSET | ORole
| false | false | false | | | default |
status | STRING | null
| true | false | true | | | default |
-------------------------------+-------------+-------------------------------+-----------+----------+----------+-----------+-----------+----------+
Indexes (1 altogether):
-------------------------------+----------------+
NAME | PROPERTIES |
-------------------------------+----------------+
OUser.name | name |
-------------------------------+----------------+
Where my new property "zzz"?
Ok, I try repeat send request:
http://localhost:2480/command/GratefulDeadConcerts/sql/create%20property%20ouser.zzz%20String
And got response:
com.orientechnologies.orient.core.exception.OCommandExecutionException:
Property 'ouser.zzz' already exists. Remove it before to retry.
This is not the end, because when I try remove this property in console, I
get error:
orientdb {GratefulDeadConcerts}> drop property ouser.zzz
Error: com.orientechnologies.orient.core.exception.OSchemaException:
Property 'zzz' not found in class OUser'
Hm.. I don`t understand, but ok, I try remove this property with REST
command:
http://localhost:2480/command/GratefulDeadConcerts/sql/drop%20property%20ouser.zzz
And got empty "" response with http code: 204
I think command running successful, because after I can send
request
http://localhost:2480/command/GratefulDeadConcerts/sql/create%20property%20ouser.zzz%20String
And got response: {"result":[{"@type":"d","@version":0,"value":5}]}
This is a bugs, or I something don`t understand?
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.