[jOOQ/jOOQ#12848] Support parsing HSQLDB's inline FOREIGN KEY syntax

This commit is contained in:
Lukas Eder 2022-01-12 17:11:18 +01:00
parent b8ab96b296
commit 9f20a54274

View File

@ -4715,7 +4715,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
continue;
}
if (parseKeywordIf("REFERENCES")) {
if (parseKeywordIf("FOREIGN KEY REFERENCES", "REFERENCES")) {
constraints.add(parseForeignKeyReferenceSpecification(inlineConstraint, new Field[] { field(fieldName) }));
continue;
}