Login Skip Navigation LinksWilsonORMapper > Forums Search
Demo Version Demo Version
Download and try for yourself a fully working demo version, including sample apps and documentation.  The only limitation is that the demo version only works inside the debugger.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

User Login User Login
Log In
 
 
Reset Password

Wilson ORMapper Forums Wilson ORMapper Forums : OPath Queries : isNull()

Date Post
5/10/2006 5:26:58 PM

When I use isNull in an opath query it generates bad sql.  Is there a fix for this?  It puts a ")" in the wrong place.

adam

queryText.Append(" isNull (RateInstanceRateInstanceObject.ExpirationDate) ")

5/11/2006 4:54:45 AM

Hi Adam,

Relationship traversals are probably not being handled correctly when placed within the IsNull function.  Traversals are generally not allowed in any function so this usage probably falls more in the "not currently supported" category than it does the "bug" category.

To fix the problem, move the traversal outside the ISNULL test, like so:

RateInstanceRateInstanceObject[IsNull(ExpirationDate)]

- Jeff Lanning