From b5622c5a5e2607953415fdeb92cd1c88e064fc78 Mon Sep 17 00:00:00 2001 From: "Gang.Zhang" Date: Fri, 9 May 2014 11:51:18 +0100 Subject: [PATCH] ASM #589 - Fix FFMP Templates generation issue Change-Id: Ia3715ccb03113f3d2528e516c2568255935f4086 Former-commit-id: fe742a06b956e1cfeb0099bf1d0a3282b8712021 [formerly f771c8fed4881ce89dd1d4e0965dd2f5e2ad1158] [formerly 165b953b5c88501fd30d656d562d99a2275b6567 [formerly 560a3cc5ac5e9e059b581294e48e69a9978272e5]] Former-commit-id: 165b953b5c88501fd30d656d562d99a2275b6567 Former-commit-id: c4b32db009b178ec656788915d7bf6c2f6decc5f --- .../com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java b/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java index 87bda5ae9e..474bd2abc8 100644 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java +++ b/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java @@ -85,8 +85,8 @@ import com.vividsolutions.jts.io.WKTWriter; * 03/01/13 DR 13228 G. Zhang Add state for VGB query and related code * 03/18/13 1817 D. Hladky Fixed issue with BOX where only 1 HUC was showing up. * 08/20/13 2250 mnash Fixed incorrect return types for database queries. + * 09/05/14 DR 17346 G. Zhang Fixed issue with DB return types. * - * * @author dhladky * @version 1 */ @@ -254,7 +254,7 @@ public class FFMPUtils { if (results.length > 0) { for (int i = 0; i < results.length; i++) { - String column_name = (String) ((Object[]) results[i])[0]; + String column_name = (String) results[i]/*((Object[]) results[i])[0]*/; if (column_name.startsWith("upstream")) { upstreams.add("upstream" + j); j++; @@ -601,7 +601,7 @@ public class FFMPUtils { for (int i = 0; i < results.length; i++) { if (results[i] != null) { keys.add(new Integer( - (String) ((Object[]) results[i])[0]) + (String)results[i]/* ((Object[]) results[i])[0]*/) .longValue()); } }