[jOOQ/jOOQ#10097] Add support for DB2 CREATE INDEX .. EXCLUDE NULL KEYS
clause
This commit is contained in:
parent
7ee1f5fc00
commit
d8eb48dde1
@ -4592,6 +4592,8 @@ final class ParserImpl implements Parser {
|
||||
? parseCondition(ctx)
|
||||
: null;
|
||||
|
||||
boolean excludeNullKeys = condition == null && parseKeywordIf(ctx, "EXCLUDE NULL KEYS");
|
||||
|
||||
CreateIndexStep s1 = ifNotExists
|
||||
? unique
|
||||
? ctx.dsl.createUniqueIndexIfNotExists(indexName)
|
||||
@ -4610,6 +4612,8 @@ final class ParserImpl implements Parser {
|
||||
: s2;
|
||||
CreateIndexFinalStep s4 = condition != null
|
||||
? s3.where(condition)
|
||||
: excludeNullKeys
|
||||
? s3.excludeNullKeys()
|
||||
: s3;
|
||||
|
||||
return s4;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user