Skip to content
Discussion options

You must be logged in to vote

This is because of the way Postgres treats identifiers. By default all identifiers are lowercased by Postgres if not wrapped with double-quotes.

Fom the Postgres docs: "Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case. For example, the identifiers FOO, foo, and "foo" are considered the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other."

For your case, updating the constraint to "NAME" != null should fix this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenoitRanque
Comment options

Answer selected by rikinsk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #7735 on November 25, 2021 13:39.