Opened 11 years ago
Closed 11 years ago
#757 closed defect (fixed)
Rasj returns only one array of structures
Reported by: | Veranika Liaukevich | Owned by: | Veranika Liaukevich |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | java | Version: | development |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
Rasj returns only one array of structures as a query result, even if there are more elements in a collection.
Code for reproducing:
Implementation myApp = null; Database myDb = null; Transaction ta = null; OQLQuery qu = null; try { myApp = new RasImplementation("http://"+server+":"+port); ((RasImplementation)myApp).setUserIdentification(user, passwd); myDb = myApp.newDatabase(); myDb.open(base, Database.OPEN_READ_ONLY); ta = myApp.newTransaction(); ta.begin(); qu = myApp.newOQLQuery(); qu.create("select rgb from rgb"); DBag bag = (DBag) qu.execute(); System.out.println("Retrieved elements: " + bag.size()); ta.abort(); myDb.close(); } catch (Exception e) { ta.abort(); myDb.close(); }
It returns Retrieved elements: 1
, but there are 5 elements in the collection in my case.
Note:
See TracTickets
for help on using tickets.