diff options
-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; } |