Rows rows = dc.createUserCommand("select 1 union all select 2").execQuery() ;
assertEquals(2, rows.getRowCount()) ;
}
public void testProcedure() throws Exception {
IUserProcedure upt = dc.createUserProcedure("framework_test_select()") ;
upt.setPage(Page.create(5, 1)) ;
Rows rows = upt.execQuery() ;
while(rows.next()){
Debug.debug(rows.getString(1)) ;
}
assertEquals(5, rows.getRowCount()) ;
}