Mercurial Hosting > luan
diff src/luan/modules/lucene/PostgresBackup.java @ 1539:c27dc6af87ca
remove nextId
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 06 Sep 2020 11:35:30 -0600 |
parents | 3bd4d7963456 |
children | 26c51acf00f3 |
line wrap: on
line diff
--- a/src/luan/modules/lucene/PostgresBackup.java Fri Aug 07 21:42:16 2020 -0600 +++ b/src/luan/modules/lucene/PostgresBackup.java Sun Sep 06 11:35:30 2020 -0600 @@ -169,17 +169,6 @@ stmt.close(); } - long maxId() - throws LuanException, IOException, SQLException - { - Statement stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery("select max(id) as m from lucene"); - rs.next(); - long m = rs.getLong("m"); - stmt.close(); - return m; - } - final class Checker { private final Connection con; private final PreparedStatement pstmt;