#1527 introduced DELETE with RETURNING and used Feature.insertReturningExpressionList
within the validation net.sf.jsqlparser.util.validation.validator.DeleteValidator - the Feature.insertReturningExpressionList is part of the validation group FeaturesAllowed.INSERT and therefore only allowed for INSERT statements.
The bugfix fixes the problem with a new feature constant Feature.deleteReturningExpressionList which is part of the validation group FeaturesAllowed.DELETE.
#1527 introduced DELETE with RETURNING and used
Feature.insertReturningExpressionListwithin the validation
net.sf.jsqlparser.util.validation.validator.DeleteValidator- theFeature.insertReturningExpressionListis part of the validation groupFeaturesAllowed.INSERTand therefore only allowed for INSERT statements.The bugfix fixes the problem with a new feature constant
Feature.deleteReturningExpressionListwhich is part of the validation groupFeaturesAllowed.DELETE.