--- android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java 2009/09/11 08:02:33 314 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java 2009/11/01 17:15:13 494 @@ -49,7 +49,11 @@ sb.append(""); for (int i=1; i<=columns; i++) { - sb.append("").append(rs.getString(i)).append(""); + String value = rs.getString(i); + if (value != null) { + value = value.replace("\n", "
"); + } + sb.append("").append( value ).append(""); } sb.append("\n"); } @@ -96,10 +100,14 @@ "'Bane.dk Fjern' as banedk1, " + "'Bane.dk stog' as banedk2 " + "FROM trainstations ORDER BY id"); + } else if (dump.equals("disabled")) { + res = dumpResultset("SELECT * FROM trainstations WHERE enabled = false ORDER BY id"); + } else if (dump.equals("noaddress")) { + res = dumpResultset("SELECT * FROM trainstations WHERE address IS NULL or address = '' "); } } if (res == null) { - res = "All
All with links
Missing coords
Duplicate stations"; + res = "All
All with links
Missing coords
Duplicate stations
Disabled stations
No address"; } resp.setContentType("text/html");