Need to fix functions parseTrigger and parseConstraint.
parseConstraint:
final String schemaName = ParserUtils.getSchemaName(constraintName, database)
to
final String schemaName = ParserUtils.getSchemaName(tableName, database)
because constraintname doesn't contain schema's name:
COMMENT ON CONSTRAINT "cd_departments_fkey_f_org" ON "registry"."cd_departments" IS 'simple constraint';
Same for parseTrigger:
final String schemaName = ParserUtils.getSchemaName(constraintName, database)
to
final String schemaName = ParserUtils.getSchemaName(tableName, database)
comment example:
COMMENT ON TRIGGER "update_count" ON "registry"."cd_departments" IS 'simple trigger';
Need to fix functions parseTrigger and parseConstraint. parseConstraint: final String schemaName = ParserUtils.getSchemaName(constraintName, database) to final String schemaName = ParserUtils.getSchemaName(tableName, database)
because constraintname doesn't contain schema's name: COMMENT ON CONSTRAINT "cd_departments_fkey_f_org" ON "registry"."cd_departments" IS 'simple constraint';
Same for parseTrigger: final String schemaName = ParserUtils.getSchemaName(constraintName, database) to final String schemaName = ParserUtils.getSchemaName(tableName, database) comment example: COMMENT ON TRIGGER "update_count" ON "registry"."cd_departments" IS 'simple trigger';