I have tried several ideas using prepared statement, but none of them worked. These are:
String insertSQL = "INSERT INTO APP.TEST (Name, 'role') VALUES (?, ?)";
String insertSQL = "INSERT INTO APP.TEST (Name, [role]) VALUES (?, ?)";
String insertSQL = "INSERT INTO APP.TEST (Name, role) VALUES (?, ?)";
role, it should work. It seems overstackflow remove the chars.roleis not on the list of reserved words