diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-06 11:07:53 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-06 11:07:53 +1200 |
commit | d31cb022e5cd75bee3a82d8fe2d2f00806146232 (patch) | |
tree | 00fb9d433a25ad06ec1b6983027fdae093fcaec8 /src/org/traccar/database/QueryBuilder.java | |
parent | 1d726860d8eb2f642d984089c6d449bf78df5dee (diff) | |
download | trackermap-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.java | 2 |
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; } |