Skip to content

Insert underscore in combined parameter name #1428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

gliljas
Copy link
Member

@gliljas gliljas commented Nov 6, 2017

Simplest possible fix for #1357, which bit us in production today.

Ideally, this should be extracted to a testable class.

@hazzik hazzik added this to the 5.0.1 milestone Nov 6, 2017
@hazzik
Copy link
Member

hazzik commented Nov 6, 2017

@gliljas I've changed this to point to the older issue. Also, could you please add tests for "future" queries?

@gliljas
Copy link
Member Author

gliljas commented Nov 6, 2017

Do you mean multiqueries (and criteria)?

@hazzik
Copy link
Member

hazzik commented Nov 6, 2017

Ah, sorry, it's fine. I wanted for Linq/Criteria Futures. But you've already added them.

@hazzik
Copy link
Member

hazzik commented Nov 6, 2017

Still need tests for MultiCriteria

@gliljas gliljas force-pushed the GH-1427 branch 2 times, most recently from 2845a28 to 4d1abee Compare November 6, 2017 09:11
multi.Add(criteria);
}
//Paramater combining is only used for cacheable queries
multi.SetCacheable(true);
Copy link
Member

@fredericDelaporte fredericDelaporte Nov 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo (Paramater instead of Parameter) and yet another somewhat undue implementation discrepancy between criteria and query. I think the criteria implementation is the right one, the query one creates those parameters uselessly when the query is not cacheable. They are only used in the query cache key.

So if we realign/mutualize implementation later, the multi-query test may no more test anything. It would be better to enable caching on it too (by enabling caching on all its queries, with same region).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I'll fix the typo, set cacheable and rebase.

@hazzik hazzik merged commit ecd0d36 into nhibernate:master Nov 6, 2017
@gliljas gliljas deleted the GH-1427 branch November 6, 2017 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants