{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6766","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6766/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6766/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6766/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6766","id":180378531,"number":6766,"title":"Pulling RID of a Vertex from Java JDBC Library","user":{"login":"decafmainline","id":17481914,"avatar_url":"https://avatars.githubusercontent.com/u/17481914?v=3","gravatar_id":"","url":"https://api.github.com/users/decafmainline","html_url":"https://github.com/decafmainline","followers_url":"https://api.github.com/users/decafmainline/followers","following_url":"https://api.github.com/users/decafmainline/following{/other_user}","gists_url":"https://api.github.com/users/decafmainline/gists{/gist_id}","starred_url":"https://api.github.com/users/decafmainline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decafmainline/subscriptions","organizations_url":"https://api.github.com/users/decafmainline/orgs","repos_url":"https://api.github.com/users/decafmainline/repos","events_url":"https://api.github.com/users/decafmainline/events{/privacy}","received_events_url":"https://api.github.com/users/decafmainline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T19:02:01Z","updated_at":"2016-09-30T20:35:12Z","closed_at":null,"body":"## Operating System\r\n- [ ] Linux\r\n- [x] MacOSX\r\n- [ ] Windows\r\n- [ ] Other Unix\r\n- [ ] Other, name? \r\n\r\nI just upgraded from 2.1.x to 2.2.10\r\n\r\nI have a query where I want ONLY the rids of a set of vertices that match a condition. I was getting negative rids until I ran across this post: \r\n\r\nhttps://groups.google.com/forum/#!topic/orient-database/EyLm1lVMolI\r\n\r\nThis worked in 2.1.x but does not anymore. Now `SELECT @rid as rid FROM` whatever returns a list of ODocuments in the rid field of the ResultSet. When I call `resultSet.getString(\"rid\")`, I get the entire ODocument as a String. I cannot imagine this is the intended behavior.\r\n\r\nI have not been able to find any documentation in either 2.1 or 2.2 that explains how to do this correctly.\r\n\r\nWhat is the canonical way to get the real rid as a projection and can someone please, please add it to the docs? This appears to be out of date: http://orientdb.com/docs/last/JDBC-Home.html#first-get-a-connection\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/250845920","html_url":"https://github.com/orientechnologies/orientdb/issues/6766#issuecomment-250845920","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6766","id":250845920,"user":{"login":"decafmainline","id":17481914,"avatar_url":"https://avatars.githubusercontent.com/u/17481914?v=3","gravatar_id":"","url":"https://api.github.com/users/decafmainline","html_url":"https://github.com/decafmainline","followers_url":"https://api.github.com/users/decafmainline/followers","following_url":"https://api.github.com/users/decafmainline/following{/other_user}","gists_url":"https://api.github.com/users/decafmainline/gists{/gist_id}","starred_url":"https://api.github.com/users/decafmainline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decafmainline/subscriptions","organizations_url":"https://api.github.com/users/decafmainline/orgs","repos_url":"https://api.github.com/users/decafmainline/repos","events_url":"https://api.github.com/users/decafmainline/events{/privacy}","received_events_url":"https://api.github.com/users/decafmainline/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T20:35:12Z","updated_at":"2016-09-30T20:35:12Z","body":"I'm working around this right now by removing the projection all together and then using `String rid = resultSet.getString(\"@rid\");` which returns exactly what I'm looking for. I would still like to know what the proper way of doing an rid projection is."}}
{"actor":{"display_login":"decafmainline"}}