Re: [orientdb] update return after @rid not working version 1.7.7

2014-07-30 Thread Luca Garulli
Hi Alexander, You found 2 bugs, one in documentation and the other in code: (1) documentation The "RETURN" keyword must go before WHERE, so try this: update TaskStatus set status = 'Running' RETURN AFTER @rid where status = 'Pending' limit 1 (2) code There is a bug where if the return value wa

[orientdb] OSerializationException: Found invalid % character

2014-07-30 Thread Milen Dyankov
I'm running this on 1.7.7: ODatabaseDocument db = new ODatabaseDocumentTx("plocal:/tmp/test"); if (!db.exists()) db.create(); db.open("admin", "admin"); ODocument doc = new ODocument("TestClass"); doc.field("test", new Object[5]); doc.save(); db.close(); db.open("admin", "admin"); for

Re: [orientdb] Vertex Class

2014-07-30 Thread Emin Agassi
The problem is the BatchGraph loads everything into V and E only. I want to load my content into custom types versus V and E. On Wednesday, July 30, 2014 5:31:41 PM UTC-4, Lvc@ wrote: > > What do you mean with "change the Vertex class"? > > Lvc@ > > > On 30 July 2014 21:23, Emin Agassi > > wrot

Re: [orientdb] Vertex Class

2014-07-30 Thread Luca Garulli
What do you mean with "change the Vertex class"? Lvc@ On 30 July 2014 21:23, Emin Agassi wrote: > Hi All, > > Can I change the Vertex class after initial creation ? > I tried the UPDATE SET @class='xxx' but it does not work and it does not > fail. > I am using the orientdb-community-1.7.6 vers

[orientdb] Vertex Class

2014-07-30 Thread Emin Agassi
Hi All, Can I change the Vertex class after initial creation ? I tried the UPDATE SET @class='xxx' but it does not work and it does not fail. I am using the orientdb-community-1.7.6 version. Thanks -- --- You received this message because you are subscribed to the Google Groups "OrientDB" g

[orientdb] Using BatchGraph with custom Vertex types and ids

2014-07-30 Thread Emin Agassi
Hi All, I am trying to use the BatchGraph to load a large number of Vertexes and Edges. I have created a custom type for Vertex and a custom type for Edge. How can I specify both the custom type name and custom id when calling addVertex: wrap.addVertex ( "class:MyType" , ... ); Can ver

[orientdb] Re: Smartfox 2.9.0 and OrientDB 1.7.7

2014-07-30 Thread Felipe Zuleta
found the solution, Deleting asm-3.2.jar from the orientdb-community-1.7.7/lib and copying the rest of the jar's solved it. (Jetty 9x is using asm-4.1.jar) thanks! On Wednesday, 30 July 2014 09:36:37 UTC-5, Felipe Zuleta wrote: > > Hi > > Smartfox 2.8.0 used Jetty 6x and it worked fine with th

[orientdb] Smartfox 2.9.0 and OrientDB 1.7.7

2014-07-30 Thread Felipe Zuleta
Hi Smartfox 2.8.0 used Jetty 6x and it worked fine with the build libs from 1.7.7 I updated to 2.9.0 which uses Jetty 9x, and now im getting, these errors happened as soon as I copied the orientdb-community-1.7.7/lib folder to /opt/SmartFoxServer_2X/SFS2X/lib: 30 Jul 2014 | 10:08:49,782 | WAR

[orientdb] Re: How add new json map item into embedded collection?

2014-07-30 Thread Наталь Капля
I found a solution, but this is some hacky, probably it's a bug: update #14:9 add msg= {"":{"Msg":"test", "Time":123321}} Inner json objects are saved as supposed if you put it in outer, key of which one isn't saved. -- --- You received this message because you are subscribed to the Google G

Re: [orientdb] Re: May be BUG: Classes are removed when moving DB from one version of OrientDB to another.

2014-07-30 Thread Ata Annamamedov
Well, Gaurav. I think the better way is to export database and then import it back in new version. I could also expect, that for the subversions of the same minor version of OrientDB the structure of DB should remain the same. But there were some troubles with most 1.7.x versions with kind of DB

[orientdb] How add new json map item into embedded collection?

2014-07-30 Thread Наталь Капля
Hi! I was adding json objects to my embedded list in 1.7rc2 version and earliear like next: update #14:9 add msg= {"Msg":"test", "Time":123321} and everything worked fine, but now(after update to 1.7.7) if I try this, no map is added, only values: msg [ "test", 123321 ] I tried many var

[orientdb] update return after @rid not working version 1.7.7

2014-07-30 Thread alexander anguiano
I'm using orientdb 1.7.7 I have this update statement. update TaskStatus set status = 'Running' where status = 'Pending' limit 1 RETURN AFTER @rid I'm expecting the update to return a collection of rids it is failing because it doesn't like the return after keyword com.orientechnologies.ori

Re: [orientdb] Re: May be BUG: Classes are removed when moving DB from one version of OrientDB to another.

2014-07-30 Thread Gaurav Dhiman
Thanks Ata for confirming. Well how exactly do you import the database built using older version to newer version o OrientDB. I simply copy the DB folder from old OrientDB installation path to new version installation path and then try accessing it with studio. Is that a right way to import DB fr

[orientdb] Re: May be BUG: Classes are removed when moving DB from one version of OrientDB to another.

2014-07-30 Thread ata
Hi, Gaurav! I do support your request. It looks more like a bug. We were able to workaround it by deleting ORIDs class of the newly created database just before importing drop class ORIDs Hope this will help, while this might be some kind of misunderstanding from my side of how import (with ORI