From 40bb1b4b9a22f7e88aa17562078260570255de43 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 16 Apr 2016 11:26:57 +1200 Subject: Remove legacy SQL query attributes --- src/org/traccar/database/DataManager.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 99f6613f4..d9a1439f2 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -438,11 +438,6 @@ public class DataManager implements IdentityManager { position.setId(QueryBuilder.create(dataSource, getQuery("database.insertPosition"), true) .setDate("now", new Date()) .setObject(position) - .setDate("time", position.getFixTime()) // tmp - .setLong("device_id", position.getDeviceId()) // tmp - .setLong("power", 0) // tmp - .setString("extended_info", MiscFormatter.toXmlString(position.getAttributes())) // tmp - .setString("other", MiscFormatter.toXmlString(position.getAttributes())) // tmp .executeUpdate()); } @@ -450,11 +445,6 @@ public class DataManager implements IdentityManager { QueryBuilder.create(dataSource, getQuery("database.updateLatestPosition")) .setDate("now", new Date()) .setObject(position) - .setDate("time", position.getFixTime()) // tmp - .setLong("device_id", position.getDeviceId()) // tmp - .setLong("power", 0) // tmp - .setString("extended_info", MiscFormatter.toXmlString(position.getAttributes())) // tmp - .setString("other", MiscFormatter.toXmlString(position.getAttributes())) // tmp .executeUpdate(); } -- cgit v1.2.3