Can't seem to compare two (of the same) enum types. If I run the command...
SELECT 'test'::core.mytype = 'test'::core.mytype;
it gives the following error...
ERROR: 42725: operator is not unique: core.mytype = core.mytype
LINE 1: SELECT 'test'::core.mytype = 'test'::core.mytype;
^
HINT: Could not choose a best candidate operator. You might need to add explicit type casts.
LOCATION: op_error, parse_oper.c:718
If I try this on another Enum type I have, it works perfectly fine, just seems to be this particular type. Not only that, but I'm sure I've been using the comparison for a few weeks now in another function.
Is there something I'm missing, or may have possibly removed by accident?