leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Bug Report for sql-check-constraint

Open harsh89 opened this issue 2 months ago • 0 comments

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.

harsh89 avatar Oct 07 '25 16:10 harsh89