Handle null uniqueColumns.
This commit is contained in:
@@ -129,9 +129,11 @@ public class HsqldbLiaison extends BaseLiaison
|
|||||||
|
|
||||||
// note the set of single column unique constraints already provided (see method comment)
|
// note the set of single column unique constraints already provided (see method comment)
|
||||||
Set<String> seenUniques = new HashSet<String>();
|
Set<String> seenUniques = new HashSet<String>();
|
||||||
for (List<String> udef : uniqueColumns) {
|
if (uniqueColumns != null) {
|
||||||
if (udef.size() == 1) {
|
for (List<String> udef : uniqueColumns) {
|
||||||
seenUniques.addAll(udef);
|
if (udef.size() == 1) {
|
||||||
|
seenUniques.addAll(udef);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// primary key columns are also considered implicitly unique as of HSQL 2.2.4, and it will
|
// primary key columns are also considered implicitly unique as of HSQL 2.2.4, and it will
|
||||||
|
|||||||
Reference in New Issue
Block a user