[jOOQ/jOOQ#17284] Cannot parse default expression in Derby using MetaImpl when computed column is reported as DEFAULT

This commit is contained in:
Lukas Eder 2024-09-19 12:00:30 +02:00
parent 70250beea4
commit 0592a782b1

View File

@ -1500,6 +1500,13 @@ final class MetaImpl extends AbstractMeta {
// [#17284] Computed columns are reported as defaults
case DERBY:
if (defaultValue != null && defaultValue.toUpperCase().startsWith("GENERATED ALWAYS AS"))
defaultValue = null;
break;
case DUCKDB:
if (!isAutoIncrement && !isEmpty(defaultValue) && P_DUCKDB_IDENTITY_DEFAULT.matcher(defaultValue).matches()) {
isAutoIncrement = true;