Commit db06b448 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Updating existing configuration that uses wildcards was failing since delete was incorrect

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10610 b35dd754-fafc-0310-a699-88a17e54d16e
parent f9552711
......@@ -229,7 +229,7 @@ public class ExternalComponentManager {
try {
con = DbConnectionManager.getConnection();
pstmt = con.prepareStatement(DELETE_CONFIGURATION);
pstmt.setString(1, configuration.getSubdomain());
pstmt.setString(1, configuration.getSubdomain() + (configuration.isWildcard() ? "%" : ""));
pstmt.setInt(2, configuration.isWildcard() ? 1 : 0);
pstmt.executeUpdate();
}
......
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