UI code should ensure that invalid values are never passed through, as that will generate an OOPS.
Database constraints exist to catch things that slip through and generate the OOPS.
Guards at this level are unnecessary and wasteful, just duplicating the functionality of the db constraint.
« Back to merge proposal
UI code should ensure that invalid values are never passed through, as that will generate an OOPS.
Database constraints exist to catch things that slip through and generate the OOPS.
Guards at this level are unnecessary and wasteful, just duplicating the functionality of the db constraint.