Add test case for SELECT with RID as parameter
@@ -973,6 +973,16 @@ public class OSelectStatementExecutionTest {
result.close();
}
+ @Test
+ public void testFetchFromSingleRidParam() {
+ OResultSet result = db.query("select from ?", new ORecordId(0, 1));
+ printExecutionPlan(result);
+ Assert.assertTrue(result.hasNext());
+ Assert.assertNotNull(result.next());
+ Assert.assertFalse(result.hasNext());
+ result.close();
+ }
+
@Test
public void testFetchFromSingleRid3() {
ODocument document = new ODocument();
