Below is a simple script that creates a class, insert 2 records and then
try's to perform the query:
select from [#11:0,#11:1]
using both the console (which seems to return the records properly) and
then using curl to perform the same query as a REST call. The rest call
returns an empty list.
btw: I am using version 1.7.7
Thanks in advance.
------------------------------------------------
create database remote:localhost/RestDemo root password plocal
connect remote:localhost/RestDemo root password
create class App extends V
insert into App set name='App-1'
insert into App set name='App-2'
-----------------------------------------------------
select from [#11:0,#11:1]
*RETURNS:*
----+-----+-----
# |@RID |name
----+-----+-----
0 |#11:0|App-1
1 |#11:1|App-2
----+-----+-----
curl --user admin:admin -X GET
"http://localhost:2480/command/RestDemo/sql/select%20@rid,name%20from%20\[#11:0,#11:1\]"
*RETURNS*:
{"result":[]}
Any ideas?
--
---
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.