G-1050 should not apply to check constraints. Check constraints only accept literals, sql-functions (not PL/SQL) and references to columns in same row. see [section "Restrictions on Check Constraints"](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/constraint.html#GUID-1055EA97-BA6F-4764-A15F-1024FD5B6DFE) ```sql create table t ( c char(1) default on null 'Y' not null, constraint t_c_chk check (c in ('Y', 'N')) ); ``` results in ```Warning (3,37): G-1050: Avoid using literals in your code```