Opened 3 years ago

Closed 3 years ago

#757 closed defect (fixed)

Rasj returns only one array of structures

Reported by: vliaukevich Owned by: vliaukevich
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 Changed 3 years ago by vliaukevich

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.