From 7509fb94633aed5f105ca17b8f0d560e2f8b6e6c Mon Sep 17 00:00:00 2001
From: "Eduardo L. Buratti" <elb09@c3sl.ufpr.br>
Date: Thu, 20 Jun 2013 15:54:28 -0300
Subject: [PATCH] web: Fix search field name ('search' -> 'search_school')

---
 web/app/models/ComboOptions.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/web/app/models/ComboOptions.java b/web/app/models/ComboOptions.java
index 0714d72..30e7feb 100644
--- a/web/app/models/ComboOptions.java
+++ b/web/app/models/ComboOptions.java
@@ -43,7 +43,7 @@ public class ComboOptions implements java.io.Serializable {
 
         try {
             PreparedStatement st = conn.prepareStatement(
-                    "SELECT DISTINCT(cit.region) FROM search s, dim_school sch, dim_city cit " +
+                    "SELECT DISTINCT(cit.region) FROM search_school s, dim_school sch, dim_city cit " +
                     " WHERE s.contacted_once='true' " +
                     "  AND sch.id = s.sch_id AND cit.id = sch.cit_id ORDER BY cit.region ASC;"
                     );
@@ -77,7 +77,7 @@ public class ComboOptions implements java.io.Serializable {
 
         try {
             PreparedStatement st = conn.prepareStatement(
-                    "SELECT DISTINCT(cit.state) FROM search s, dim_school sch, dim_city cit " +
+                    "SELECT DISTINCT(cit.state) FROM search_school s, dim_school sch, dim_city cit " +
                     " WHERE s.contacted_once='true' AND cit.region=? " +
                     "  AND sch.id = s.sch_id AND cit.id = sch.cit_id ORDER BY cit.state ASC;"
                     );
@@ -112,7 +112,7 @@ public class ComboOptions implements java.io.Serializable {
 
         try {
             PreparedStatement st = conn.prepareStatement(
-                    "SELECT DISTINCT(cit.id),cit.name FROM search s, dim_school sch, dim_city cit " +
+                    "SELECT DISTINCT(cit.id),cit.name FROM search_school s, dim_school sch, dim_city cit " +
                     " WHERE s.contacted_once='true' AND cit.state=? " +
                     "  AND sch.id = s.sch_id AND cit.id = sch.cit_id ORDER BY cit.name ASC;"
                     );
-- 
GitLab