aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-16 11:26:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-16 11:26:57 +1200
commit40bb1b4b9a22f7e88aa17562078260570255de43 (patch)
treee227eba328144ae43c71ef3ada1f712abd78b4f0 /src/org/traccar
parent30f10f12d32915d74e36b4bf336e4e2d7ac3aada (diff)
downloadtraccar-server-40bb1b4b9a22f7e88aa17562078260570255de43.tar.gz
traccar-server-40bb1b4b9a22f7e88aa17562078260570255de43.tar.bz2
traccar-server-40bb1b4b9a22f7e88aa17562078260570255de43.zip
Remove legacy SQL query attributes
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/DataManager.java10
1 files changed, 0 insertions, 10 deletions
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();
}