GetLimitString "Nullable object must have a value" exception in DB2Dialect

Description

GetLimitString takes nullable parameters for offsetParameterIndex and limitParameterIndex.

When those parameters are null

pagingBuilder.Add("<= ").Add(Parameter.WithIndex(limitParameterIndex.Value));

throws "Nullable object must have a value" exception.

Environment

None

Attachments

1

Activity

Show:

Ted Lum 
March 26, 2011 at 5:56 PM

Test passes on version 3.1, issue seems to have been resolved.

Ted Lum 
March 26, 2011 at 2:48 PM

Test case

Ted Lum 
March 26, 2011 at 7:13 AM

Still trying to track it down, the exact reason for the condition of null optional parameters is still unknown.

Fabio Maulo 
March 25, 2011 at 9:49 AM

have you a failing test ?

Fabio Maulo 
March 25, 2011 at 9:49 AM

That is for sure but now we need something to check when those parameters come with no value.
It should never happen.

Obsolete

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created March 25, 2011 at 8:35 AM
Updated April 12, 2011 at 3:28 PM
Resolved April 12, 2011 at 3:28 PM
Who's Looking?