newIndex.markSpatial(index.firstSpatialArgument(),
index.lastSpatialArgument() - index.firstSpatialArgument() + 1);
}
if(curIndex != null) {
throw new DuplicateIndexException(indexName);
}
if(index.getKeyColumns().isEmpty()) {
throw new IndexLacksColumnsException(indexName);
}