[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3541) ResultSet getString(int i)

robinsoncharles@comcast.net wrote:

>Full_Name: Charles Robinson
>Version: doc says 0.1 zip suggests 2.0
>OS: Wiin 2000
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (
>When analyzing the ResultSet derived from a Select as follows (notice the
>explicit names in the select)
>ResultSet rs = stmt.executeQuery("SELECT
>cn,displayName,givenName,department,mail FROM ou=Users where
>I found that if I did a rs.getString(1) I got a random column.
>I converted to rs.getString("cn") and got the column named.
>It looked as if the result set was ordered by whatever order LDAP itself turned
>back, not what the programmer specified in the select.
It is unclear what client software is being used; it seems o be unrelated to OpenLDAP software.  In any case, OpenLDAP's slapd returns the attributes in an implementation dependent order that may be totally unrelated to the order they are requested; there is no indication in the specs as per what order attributes must be returned.


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497