aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-24 14:13:02 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-24 14:13:02 +1300
commitbe1baf2b062587099171b485ac1e3f591034816f (patch)
treede182ea8ae504028b5ba44ac32ea74bbb8e6ee29
parente98b651676eb7a2cd893ac996433365ac5b38ac9 (diff)
downloadtrackermap-server-be1baf2b062587099171b485ac1e3f591034816f.tar.gz
trackermap-server-be1baf2b062587099171b485ac1e3f591034816f.tar.bz2
trackermap-server-be1baf2b062587099171b485ac1e3f591034816f.zip
Support queries with result
-rw-r--r--src/org/traccar/database/QueryBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/QueryBuilder.java b/src/org/traccar/database/QueryBuilder.java
index f50546129..c3cde0723 100644
--- a/src/org/traccar/database/QueryBuilder.java
+++ b/src/org/traccar/database/QueryBuilder.java
@@ -421,7 +421,7 @@ public final class QueryBuilder {
if (query != null) {
try {
- statement.executeUpdate();
+ statement.execute();
if (returnGeneratedKeys) {
ResultSet resultSet = statement.getGeneratedKeys();
if (resultSet.next()) {