handling COLLATE parameter value in alter property
@@ -67,8 +67,10 @@ public class OAlterPropertyStatement extends ODDLStatement {
result.setProperty("newValue", finalValue != null ? finalValue.toString() : null);
} else {
String setting = settingName.getStringValue();
+ boolean isCollate = setting.equalsIgnoreCase("collate");
Object finalValue = settingValue.execute((OIdentifiable) null, ctx);
- if (finalValue == null && (setting.equalsIgnoreCase("name") || setting.equalsIgnoreCase("shortname"))) {
+ if (finalValue == null &&
+ (setting.equalsIgnoreCase("name") || setting.equalsIgnoreCase("shortname") || isCollate)) {
finalValue = settingValue.toString();
String stringFinalValue = (String) finalValue;
if (stringFinalValue.startsWith("`") && stringFinalValue.endsWith("`") && stringFinalValue.length() > 2) {
