Skip to content

Instantly share code, notes, and snippets.

@volgar1x
Created April 8, 2015 20:55
Show Gist options
  • Save volgar1x/e365c1c1258cff962be2 to your computer and use it in GitHub Desktop.
Save volgar1x/e365c1c1258cff962be2 to your computer and use it in GitHub Desktop.
if (!rset.last()) {
return new int[0];
}
int[] ids = new int[rset.getRow()];
rset.beforeFirst();
for (int i = 0; i < ids.length; i++) {
rset.next();
ids[i] = rset.getInt(1);
}
return ids;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment