/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 867 by torben, Thu Jun 10 22:58:48 2010 UTC revision 868 by torben, Mon Jun 21 12:58:06 2010 UTC
# Line 145  public class DumpResultSet extends HttpS Line 145  public class DumpResultSet extends HttpS
145                                  res = dumpResultset("SELECT statisticsdate, location+name+favorites AS station, location,name,favorites,departure,depcache,deperror,timetable,timecache,timeerror " +                                  res = dumpResultset("SELECT statisticsdate, location+name+favorites AS station, location,name,favorites,departure,depcache,deperror,timetable,timecache,timeerror " +
146                                                  "FROM trainstatistics ORDER BY statisticsdate DESC");                                                  "FROM trainstatistics ORDER BY statisticsdate DESC");
147                          } else if (dump.equals("trainstatistics_avg")) {                          } else if (dump.equals("trainstatistics_avg")) {
148                                  res = dumpResultset("SELECT  round(avg(location+name+favorites),1) AS station, round(avg(location),1) as location, round(avg(name),1) as name, round(avg(favorites),1) as favorites, " +                                  res = dumpResultset("SELECT count(*) AS count, round(avg(location+name+favorites),1) AS station, round(avg(location),1) as location, round(avg(name),1) as name, round(avg(favorites),1) as favorites, " +
149                                                  "round(avg(departure),1) as departure, round(avg(depcache),1) as depcache, round(avg(deperror),1) as deperror, " +                                                  "round(avg(departure),1) as departure, round(avg(depcache),1) as depcache, round(avg(deperror),1) as deperror, " +
150                                                  "round(avg(timetable),1) as timetable, round(avg(timecache),1) as timecache, round(avg(timeerror),1) as timeerror " +                                                  "round(avg(timetable),1) as timetable, round(avg(timecache),1) as timecache, round(avg(timeerror),1) as timeerror " +
151                                                  "FROM trainstatistics");                                                  "FROM trainstatistics");

Legend:
Removed from v.867  
changed lines
  Added in v.868

  ViewVC Help
Powered by ViewVC 1.1.20