removed file.
1 parent 9cb4269 commit e853f042c538ffb307b41d63d694e6923c2fd3d7
@hayashi hayashi authored on 8 Oct 2018
Showing 2 changed files
View
dist/lib/hayashi.jar
Not supported
View
8
src/osm/jp/coverage/fuel/DbFuel.java
*/
public void outputRemoved(File removedFile) throws SQLException, IOException {
String whereStr = "WHERE (removed=?)";
String fromStr = "FROM "+ DbFuel.TABLE_NAME;
String sql = String.format("SELECT gmlid,area,idref %s %s", fromStr, whereStr);
try (FileWriter fw = new FileWriter(removedFile, true);
String sortStr = "ORDER BY area,gmlid";
String sql = String.format("SELECT * %s %s %s", fromStr, whereStr, sortStr);
try (FileWriter fw = new FileWriter(removedFile);
PreparedStatement ps1 = hsqldb.prepareStatement(sql))
{
System.out.println(sql);
ps1.setBoolean(1, true);