ResultSet res = conn.prepAndBind("SELECT `name`, `type`, `prefix`, `suffix` FROM `{permissions_entity}` WHERE LENGTH(`prefix`)>0 OR LENGTH(`suffix`)>0").executeQuery();
while (res.next()) {
String prefix = res.getString("prefix");
if (!prefix.isEmpty() && !prefix.equals("null")) {
conn.bind(updateStmt, res.getString("name"), res.getInt("type"), "prefix", "", prefix);
updateStmt.addBatch();
}
String suffix = res.getString("suffix");
if (!suffix.isEmpty() && !suffix.equals("null")) {
conn.bind(updateStmt, res.getString("name"), res.getInt("type"), "suffix", "", suffix);
updateStmt.addBatch();