Skip to content

Commit

Permalink
fix loading addresses for non-country places
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Nov 15, 2024
1 parent b32c234 commit 23c18ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void loadCountryAddresses(JdbcTemplate template, DBDataAdapter dbutils, S
));


if (countryCode == null) {
if ("".equals(countryCode)) {
template.query(BASE_COUNTRY_QUERY + " AND country_code is null", rowMapper);
} else {
template.query(BASE_COUNTRY_QUERY + " AND country_code = ?", rowMapper, countryCode);
Expand Down

0 comments on commit 23c18ef

Please sign in to comment.