From d31cb022e5cd75bee3a82d8fe2d2f00806146232 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Jun 2015 11:07:53 +1200 Subject: Fix column label problem --- src/org/traccar/database/QueryBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3