aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/QueryBuilder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-06 11:07:53 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-06 11:07:53 +1200
commitd31cb022e5cd75bee3a82d8fe2d2f00806146232 (patch)
tree00fb9d433a25ad06ec1b6983027fdae093fcaec8 /src/org/traccar/database/QueryBuilder.java
parent1d726860d8eb2f642d984089c6d449bf78df5dee (diff)
downloadtrackermap-server-d31cb022e5cd75bee3a82d8fe2d2f00806146232.tar.gz
trackermap-server-d31cb022e5cd75bee3a82d8fe2d2f00806146232.tar.bz2
trackermap-server-d31cb022e5cd75bee3a82d8fe2d2f00806146232.zip
Fix column label problem
Diffstat (limited to 'src/org/traccar/database/QueryBuilder.java')
-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 2c7a3a397..ff26221de 100644
--- a/src/org/traccar/database/QueryBuilder.java
+++ b/src/org/traccar/database/QueryBuilder.java
@@ -277,7 +277,7 @@ public class QueryBuilder {
// Check if column exists
boolean column = false;
for (int i = 1; i <= resultMetaData.getColumnCount(); i++) {
- if (name.equalsIgnoreCase(resultMetaData.getColumnName(i))) {
+ if (name.equalsIgnoreCase(resultMetaData.getColumnLabel(i))) {
column = true;
break;
}