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.

Change History (1)

comment:1 by Veranika Liaukevich, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.