I think your check is backwards... in order for the constraint to pass, it should evaluate to TRUE
or to UNKNOWN
. Your SELECT
statement is telling you that no rows meet the constraint instead of telling you that no rows violate the constraint.
CHECK constraints reject values that evaluate to FALSE.