fixed name generation in index statement in case of recordAttribute
@@ -345,7 +345,11 @@ public class OCreateIndexStatement extends ODDLStatement {
*/
public String getCompleteKey() {
StringBuilder result = new StringBuilder();
+ if (name != null)
result.append(name.getStringValue());
+ else if (recordAttribute != null)
+ result.append(recordAttribute.getName());
+
if (byKey) {
result.append(" by key");
}
