HI, I have a piece of code
int x =0;
do
{
var y = queryRun.next();
table1worker = queryrun.get(tableNum(table1), 1);
table2person = queryrun.get(tableNum(table2), 1);
x++;
} while(x < 45);
I know that I should be getting 46 records.
My main code should be --
do
{
table1worker = queryrun.get(tableNum(table1), 1);
table2person = queryrun.get(tableNum(table2), 1);
x++;
} while(queryrun.next());
I can see in the first piece that the 38th record returns false and the nfrom the 39th record it starts returning true..
I could see that table 1 worker is returned as no data selected for the 38th record..
The sql statement has cross joins..
What could be the possible reason for this.
Because of this my main loop is failing after 37 iterations and I am not able to get the other records