comparison src/luan/modules/lucene/PostgresBackup.java @ 1398:67c0e47b5be3

more lucene
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 11 Sep 2019 15:48:49 -0600
parents cc0dbca576dc
children 38a1c1b4279a
comparison
equal deleted inserted replaced
1397:0dc9837c16be 1398:67c0e47b5be3
96 deleteStmt.close(); 96 deleteStmt.close();
97 con.close(); 97 con.close();
98 } 98 }
99 99
100 protected void finalize() throws Throwable { 100 protected void finalize() throws Throwable {
101 close();
101 super.finalize(); 102 super.finalize();
102 if( !con.isClosed() ) {
103 sysLogger.error("con not closed");
104 con.close();
105 }
106 } 103 }
107 104
108 void add(LuanTable doc) throws LuanException, SQLException { 105 void add(LuanTable doc) throws LuanException, SQLException {
109 Long id = (Long)doc.get("id"); 106 Long id = (Long)doc.get("id");
110 String data = luanToString.toString(doc); 107 String data = luanToString.toString(doc);