[Date Prev][Date Next]
Re: Help with an integer search?
At 10:57 AM 2002-11-07, Austin Conger (IT) wrote:
>For days, I have been trying to understand how to do a search based on an integer value.
>Initially I thought doing this search filter (itemnumber<=12) and having my attribute defined as such in my schema file would do it.
No ORDERING rule, assertion Undefined.
>attributetype ( 188.8.131.52.4.1.149184.108.40.206.2 NAME 'itemnumber'
> DESC 'number for item in ldap'
> EQUALITY integerMatch
> SYNTAX 220.127.116.11.4.1.1418.104.22.168.27
> SINGLE-VALUE )
>Then I find later that its actually stored as a decimal representation.
> ( 22.214.171.124.4.1.14126.96.36.199.27 DESC 'INTEGER' )
> Values in this syntax are encoded as the decimal representation of
> their values, with each decimal digit represented by the its
> character equivalent. So the number 1321 is represented by the
> character string "1321".I gues I am alittle confused as to how I perform such an integer search? Is this possible?
>I am running OpenLDAP 2.1.5 on Solaris 8 with BerkeleyDB 4.1