#
#   enum = CONST
#
test select count{}() from alltypes where enum_n == RED
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:36.001,S1,60
!end

#
#   enum IN (CONST1, CONST2)
#
test select count{}() from alltypes where enum_n IN (RED, BLUE)
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:38.001,S1,120
!end

#
#   is [not] null
#
test select count{}() from alltypes where enum_n is null
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:39,S1,20
!end
test select count{}() from alltypes where enum_n is not null
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:38.001,S1,180
!end
test select count{}() from alltypes where not enum_n is null
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:38.001,S1,180
!end
#
#   (!)= null
#
test select count{}() from alltypes where enum_n == null
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:39,S1,20
!end
test select count{}() from alltypes where enum_n != null
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:38.001,S1,180
!end
test select count{}() from alltypes where not enum_n == null
>_,TIMESTAMP,SYMBOL,TYPE,COUNT{}()
0,2011-01-01 00:01:38.001,S1,180
!end
#
#   enum_n != enum_n  ==> false
#
test select count{}() from alltypes where enum_n != enum_n
!end
