#1912 - Allow @Index(unique=true) to support formula in columns

This commit is contained in:
rob bygrave
2020-01-14 16:20:02 +13:00
parent 22e43f5fa7
commit 56562915bf
2 changed files with 2 additions and 4 deletions
@@ -765,10 +765,7 @@ public class MTable {
List<String> nullableColumns = new ArrayList<>();
for (String columnName : uniq.getColumns()) {
MColumn col = getColumn(columnName);
if (col == null) {
throw new IllegalStateException("Column '" + columnName + "' not found in table " + getName());
}
if (!col.isNotnull()) {
if (col != null && !col.isNotnull()) {
nullableColumns.add(columnName);
}
}