Can not perform the plot. He says that he can not: Cat not resolve to parameter "1". Same with the second. The query itself works well. Here only preparedStatement does not see its parameters 1 and 2.
String query = "select ae.id, adr__get_search_name(ae.id) from address_element ae join address_element parent on parent.id = ae.parent_id where upper (parent.name) like ? and upper (ae.name ) like ?; try { PreparedStatement preparedStatement = connection.getConnection().prepareStatement(query); preparedStatement.setString(1, "'%" + regCityx + "%'"); preparedStatement.setString(2, "'%" + regStreetx + "%'");
Cat not resolve to parameter... all the fault ofCat) Well, seriously, then afterLIKEshould not go a word in the apostrophes? and generally try first on a static query, then add one parameter, etc. ... - ermak0ff?and hands to drive and run? To check that it is correct. - Vartlok