Skip to content

Commit 4957f7c

Browse files
carlos-rodrigues-8x8robfrank
authored andcommitted
IF NOT EXISTS doesn't work for EDGE [@out,@in] index (#2721)
Fixing issue on creating indexes on edges (cherry picked from commit 96f4752)
1 parent e11c241 commit 4957f7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/src/main/java/com/arcadedb/query/sql/parser/CreateIndexStatement.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ else if (typeAsString.equalsIgnoreCase("UNIQUE")) {
111111

112112
database.getSchema().buildTypeIndex(typeName.getStringValue(), fields)
113113
.withType(indexType)
114+
.withIgnoreIfExists(ifNotExists)
114115
.withUnique(unique)
115116
.withPageSize(LSMTreeIndexAbstract.DEF_PAGE_SIZE)
116117
.withNullStrategy(nullStrategy)

0 commit comments

Comments
 (0)