Skip to content

G-7730 valid in all cases or only if PK is assigned? #91

Closed
@kibeha

Description

@kibeha

Would the rule be still correct without "if primary key is assigned in trigger."? I have not tested it, but in the bad example we assign the PK only in the insert trigger. Can we assume that we assign a value to the PK in an insert trigger? I'd guess yes.

I ask because I need to know that for the PL/SQL Cop validator. It has no idea what the primary key columns are. If this is a criterion then a check is not that simple to implement or might lead to a false positive.

Furthermore we should add an Oracle Database version for which we have tested this locking behaviour. One version is enough (latest) IMO.

Originally posted by @PhilippSalvisberg in #86 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions