set max 2
#
#   symbol as fieldname (fieldname is capitalized)
#
test select symbol as fieldname from alltypes
>_,TIMESTAMP,SYMBOL,TYPE,FIELDNAME
0,2011-01-01 00:00:00,S0,S0
1,2011-01-01 00:00:00.001,S1,S1
!end
#
#   sequence as "field-Name"
#
test select sequence as "field-Name" from alltypes
>_,TIMESTAMP,SYMBOL,TYPE,field-Name
0,2011-01-01 00:00:00,S0,0
1,2011-01-01 00:00:00.001,S1,0
!end
#
#   Just timestamp
#
test select timestamp as timestamp(ms) from alltypes
!shellmatch
>_,TIMESTAMP,SYMBOL,TYPE,$1
0,2011-01-01 00:00:00,S0,2011-01-01
1,2011-01-01 00:00:00.001,S1,2011-01-01 00:00:00.001
!end
#
# arithmetic expression
#
test select 361. / 5 as "divisionResult"
>_,TIMESTAMP,SYMBOL,TYPE,divisionResult
>>,,,,72.2
0,_,
!end
