#950 Add unregister by name to API
- Add method to API - Ensure that unregistering in datasource is case-insensitive
This commit is contained in:
@@ -612,7 +612,7 @@ public class MySQL implements DataSource {
|
||||
}
|
||||
}
|
||||
}
|
||||
pst.setString(1, user);
|
||||
pst.setString(1, user.toLowerCase());
|
||||
pst.executeUpdate();
|
||||
return true;
|
||||
} catch (SQLException ex) {
|
||||
|
||||
@@ -335,7 +335,7 @@ public class SQLite implements DataSource {
|
||||
PreparedStatement pst = null;
|
||||
try {
|
||||
pst = con.prepareStatement("DELETE FROM " + tableName + " WHERE " + col.NAME + "=?;");
|
||||
pst.setString(1, user);
|
||||
pst.setString(1, user.toLowerCase());
|
||||
pst.executeUpdate();
|
||||
return true;
|
||||
} catch (SQLException ex) {
|
||||
|
||||
Reference in New Issue
Block a user