I tried this out. To be clear, the error is associated with the expression involving the parameter, i.e. :testEnum IS NULL, not with the expression t.testEnum IS NULL, which works fine.