I'm getting the impression that we're talking about slightly different scenarios ;)
You're saying
Quote:
I can't think of an example where I want value = :param to return rows where the param is a user-supplied NULL
But earlier, you gave a fine example:
Quote:
sometimes you want to pull in all the NULLs, e.g., unrealized stock transactions (in my app, they have a null close date)
To me, this is quite a common scenario. In your app, I can imagine your users can query for stock transactions, and you let them specify a close date. They can fill one in, or leave it blank. I would love to have one query that handles both use cases.
Maybe you're talking about a different scenario, because I don't exactly understand what you mean in the first quote above with "value = :param": what is "value" in your case? In the problem I describe, "value" is actally a property of an entity (or column in a table). I'm a bit confused by your usage of the word value. Maybe you mean something else than I do?