Issue Details (XML | Word | Printable)

Key: GLDP-90
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Luke Daley
Reporter: Joel Reed
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Gldapo

Typemapping for Boolean type

Created: 04/Aug/08 07:54 PM   Updated: 09/Aug/08 10:36 AM
Component/s: API
Affects Version/s: 0.7
Fix Version/s: 0.7

Time Tracking:
Not Specified

File Attachments: 1. Text File boolean-type-map.patch (2 kB)
2. File must.be.uppercase.diff (0.7 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
Here's a few lines of code that adds a Boolean Type Map to the default type mappings and adds relevant test cases.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Luke Daley added a comment - 09/Aug/08 02:10 AM
Implemented. Thanks for the patch!

Joel Reed added a comment - 09/Aug/08 10:36 AM
When I first submitted this patch I tested the mapToBoolean but just copied and pasted the mapFrom function and didn't really see what it was used for in the documentation.

Later on, I tried creating a new entry and realized the mapFrom version needed to uppercase the resultant TRUE or FALSE.

See:

http://www.alvestrand.no/objectid/1.3.6.1.4.1.1466.115.121.1.7.html

The attached patch is incremental and fixes this issue.