Now this is supported. Last inserted record is returned. Lvc@
On 10 April 2014 12:44, Lebnik <[email protected]> wrote: > Hi, Luca. You have not forgotten about the problem https://github.com/ > orientechnologies/orientdb/issues/1944 but for version 1.x > > > четверг, 9 января 2014 г., 15:48:48 UTC+4 пользователь Lvc@ написал: > >> Hi, >> http batch command returns the number of executed statements. I agree it >> would much more useful returning a JSON with the returns of single >> commands. Could you open a new issue for that? >> >> Lvc@ >> >> >> >> On 9 January 2014 12:28, Lebnik <[email protected]> wrote: >> >>> Hi, >>> >>> I send request to >>> >>> http://localhost:2480/batch/GratefulDeadConcerts >>> >>> with content: >>> >>> {"transaction":false,"operations":[{"type":"cmd","language":"sql", >>> "command":"INSERT INTO Orgunit (objectId, languageId, name, info, >>> position, flagShow, divisionKindId, divisionTypeId, parentId, dateStart, >>> dateEnd, prikazIdStart, prikazIdEnd) VALUES (9, 1, 'r9', 't', 0, 0, 1, 1, >>> 1, '2014-01-09 00:00:00', '2014-01-09 00:00:00', 0, 0)"}]} >>> >>> and got response: >>> >>> 1 >>> >>> this good, but how I can get my last inserted rid? >>> >>> OrientDB Server v2.0-SNAPSHOT (build 1) >>> >>> -- >>> >>> --- >>> 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. >>> >> >> -- > > --- > 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]. For more options, visit https://groups.google.com/d/optout.
