-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jdbc] JDBC persistence ignores operator set in FilterQuery #9906
Comments
Probably this is the logic in question: Lines 515 to 528 in cf241f8
and this test: Lines 202 to 211 in cf241f8
|
Yup, these are places I been patching in order to get boundaries. |
But unfortunately the current implementation seems correct, at least according to these comments in core implementation: These are only comments, though, not official documentation. @cweitkamp - do you know if these comments are to be interpreted literally? The operator is for comparing state, not dates:
Lines 314 to 318 in cf241f8
And here: Lines 204 to 215 in cf241f8
And here: Lines 370 to 379 in cf241f8
So I would agree that we can change to "TIME>=" and "TIME<=" in lines 519 and 524, is that also how you patched it? If this would be the outcome, I would also open a PR towards core to change those comments. |
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes #9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes #9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes #9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Fixes openhab#9906 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Given that
FilterQuery
makes it possible to specify additional operator I am convinced that ignoring it is a bug. There is currently no way to tell JDBC persistence to be inclusive.The generated query always uses
>
for begin date and<
for end date. There are cases where these should be=>
or<=
.The text was updated successfully, but these errors were encountered: