Commit a49aa23f authored by Eduardo L. Buratti's avatar Eduardo L. Buratti

web: Fix search_school function name

Signed-off-by: Eduardo L. Buratti's avatarEduardo L. Buratti <elb09@c3sl.ufpr.br>
parent f5cc3a88
......@@ -38,7 +38,7 @@ public class SearchResult implements java.io.Serializable {
ArrayList<SearchResult> results = new ArrayList<SearchResult>();
try {
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM search_school(?) WHERE region=? AND state=? AND city_raw=?;");
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM do_search_school(?) WHERE region=? AND state=? AND city_raw=?;");
st.setString(1, query);
st.setString(2, region);
st.setString(3, state);
......@@ -68,7 +68,7 @@ public class SearchResult implements java.io.Serializable {
ArrayList<SearchResult> results = new ArrayList<SearchResult>();
try {
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM search_school(?) WHERE region=? AND state=?;");
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM do_search_school(?) WHERE region=? AND state=?;");
st.setString(1, query);
st.setString(2, region);
st.setString(3, state);
......@@ -96,7 +96,7 @@ public class SearchResult implements java.io.Serializable {
ArrayList<SearchResult> results = new ArrayList<SearchResult>();
try {
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM search_school(?) WHERE region=?;");
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM do_search_school(?) WHERE region=?;");
st.setString(1, query);
st.setString(2, region);
......@@ -123,7 +123,7 @@ public class SearchResult implements java.io.Serializable {
ArrayList<SearchResult> results = new ArrayList<SearchResult>();
try {
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM search_school(?);");
PreparedStatement st = conn.prepareStatement("SELECT id,name,city FROM do_search_school(?);");
st.setString(1, query);
ResultSet res = st.executeQuery();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment