Thanks! On Friday, May 29, 2015 at 4:28:26 PM UTC+5:30, Luigi Dell'Aquila wrote: > > Hi Omega, > > I reproduced it locally. I've just opened an issue about this, you can > track it here https://github.com/orientechnologies/orientdb/issues/4242 > > Luigi > > > > 2015-05-22 12:28 GMT+02:00 Omega Silva <[email protected] <javascript:>>: > >> Hi Luigi, >> >> Thanks for the response. >> >> I'm using a remote connection. >> >> On Friday, May 22, 2015 at 1:14:33 PM UTC+5:30, Luigi Dell'Aquila wrote: >>> >>> Hi Omega, >>> >>> Are you using a remote or a plocal connection? >>> >>> thanks >>> >>> Luigi >>> >>> 2015-05-22 6:26 GMT+02:00 Omega Silva <[email protected]>: >>> >>>> Hi All, >>>> >>>> *Scenario:* >>>> >>>> I have two classes. Schema given below; >>>> >>>> CLASS B { >>>> PROPERTY name STRING >>>> } >>>> >>>> CLASS A { >>>> PROPERTY name STRING >>>> PROPERTY bLinkList LINKLIST B >>>> } >>>> >>>> I want to insert a record to Class B, insert a record to Class A and >>>> link new record of class B to the new record of class A. I want to do this >>>> in a transaction. >>>> >>>> >>>> *Code:* >>>> >>>> I'm using a server side function for doing this. Following is the code. >>>> >>>> db.begin(); >>>> >>>> var bRid = db.command("INSERT INTO B (name) VALUES(\"Jack\") RETURN >>>> @rid"); >>>> db.command("INSERT INTO A (name) VALUES(\"Jack\")"); >>>> db.command("UPDATE A ADD bLinkList = " + bRid); >>>> >>>> db.commit(); >>>> >>>> *Facts* >>>> >>>> I'm using OrientDB Version : 2.0.3. My DB is a Document DB >>>> >>>> *Observation* >>>> >>>> 1. With in a transaction, this does not work. For bLinkList in Class A, >>>> null is inserted >>>> 2. With out the transaction this works. >>>> >>>> >>>> I've checked the rid returned after insertion with in the transaction >>>> and as expected they are temporary rids. As per documentation and few >>>> forum >>>> posts I've referred, the records are sent to the server and the >>>> transaction >>>> is re-created in the server side before the commit, hence the consistency >>>> of the temporary rids created with in the transaction at client side are >>>> maintained. >>>> >>>> Unfortunately this does not work. Some help would be highly appreciated. >>>> >>>> Cheers! >>>> Omega >>>> >>>> -- >>>> >>>> --- >>>> 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/d/optout. >>>> >>> >>> -- >> >> --- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > >
-- --- 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/d/optout.
