Skip to content

Instantly share code, notes, and snippets.

@LoadLow
Forked from volgar1x/gist:e365c1c1258cff962be2
Last active August 29, 2015 14:18
Show Gist options
  • Save LoadLow/12bba876b304e6024894 to your computer and use it in GitHub Desktop.
Save LoadLow/12bba876b304e6024894 to your computer and use it in GitHub Desktop.
if (!rset.last()) {
return new int[0];
}
int[] ids = new int[rset.getRow()+1];
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