Skip to content

Bug Report for sql-check-constraint #4890

@harsh89

Description

@harsh89

Bug Report for https://neetcode.io/problems/sql-check-constraint

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

While check for constraints, the test fails if you reverse the order of constraint check.

status text check (status IN ('available', 'out of stock')) - This passes


status text check (status IN ( 'out of stock', 'available')) - This fails

Ideally both should work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions