lucidsoftware / piezo

Piezo is a set of tools for operating a quartz scheduling cluster.
Apache License 2.0
53 stars 28 forks source link

Use .next() instead of .first() to move to first row. #102

Closed tmccombs closed 1 year ago

tmccombs commented 1 year ago

.next() works if the ResultSet is TYPE_FORWARD_ONLY, but .first() isn't supposed to (but sometimes it does), because it might move backwards.

after running a query the cursor is before the first row, so if there is a returned record, .next() will move to that record.