I'd like to select multiple values on my column (undefined number) and as long as I know, IN operator doesn't work on Mapserver's filter.
Example : FILTER (([ct] IN ('%ct%')) or ('%ct%' = '1')) returns
msPostGISLayerWhichShapes(): Error (ERREUR: la fonction ct(unknown) n'existe pas LINE 1: ...0878906249999975 -66.4782081438564))',4326) and (("ct"('1'))...
HINT: Aucune fonction ne correspond au nom donné et aux types d'arguments. Vous devez ajouter des conversions explicites de type.
==> ct(unknown) function doesn't exist ... Can't find a function matching name and parameters given. You should add explicite type's conversions
Is there a tip to use IN operator? I need to send several values for a same column.
As my filter function could seem strange, here's my VALIDATION :
VALIDATION
'ct' '^[a-zA-Z\-]+$'
'default_ct' '1'
END
select * from my_table where ct in ('user_given_string') OR user_given_string='1'?