Mercurial Hosting > luan
comparison src/luan/modules/lucene/PostgresBackup.java @ 1399:38a1c1b4279a
fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 11 Sep 2019 16:28:38 -0600 |
parents | 67c0e47b5be3 |
children | 27efb1fcbcb5 |
comparison
equal
deleted
inserted
replaced
1398:67c0e47b5be3 | 1399:38a1c1b4279a |
---|---|
222 } | 222 } |
223 | 223 |
224 LuanTable getDoc(long id) throws SQLException, LuanException { | 224 LuanTable getDoc(long id) throws SQLException, LuanException { |
225 pstmt.setLong(1,id); | 225 pstmt.setLong(1,id); |
226 ResultSet rs = pstmt.executeQuery(); | 226 ResultSet rs = pstmt.executeQuery(); |
227 rs.next(); | 227 if( !rs.next() ) |
228 return null; | |
228 String data = rs.getString("data"); | 229 String data = rs.getString("data"); |
229 LuanTable doc = (LuanTable)eval(data,env); | 230 LuanTable doc = (LuanTable)eval(data,env); |
230 return doc; | 231 return doc; |
231 } | 232 } |
232 } | 233 } |