Re: "is null" qualifier not working in modeler

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Sep 09 2005 - 12:46:35 EDT

  • Next message: Gili: "Re: "is null" qualifier not working in modeler"

    This is a bug. I can reproduce it. Probably related to this one:
    http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-352

    On Sep 9, 2005, at 12:20 PM, Gili wrote:

    > Ah ha! Found it! It's a bug in the cached mapped query support
    > again. DataContext line 1237, when we generate a new query we don't
    > copy over the qualifier string. I've moved this email over to the
    > dev list.
    >
    > The problem is that the code invokes select.createQuery() which
    > constructs a new Query based upon the old one but defaults to
    > pruneMissing = true... for some unknown reason, this strips away my
    > qualifier. It is true it has no parameters, but none of them are
    > bound parameters either, so I don't think it should be stripping
    > them away. So that's one bug (I think) and I think there is also a
    > second one in that that we shouldn't be using pruneMissing = true
    > in the first place for constructing a cached SelectQuery based upon
    > the original SelectQuery. The parameters before and after should
    > match up 100% and if not we should throw an error.
    >
    > Gili
    >



    This archive was generated by hypermail 2.0.0 : Fri Sep 09 2005 - 12:46:39 EDT