Skip to content
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

Fix persist with date method #4267

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

mherwege
Copy link
Contributor

@mherwege mherwege commented Jun 5, 2024

Evaluating openhab/openhab-js#335, one bug was identified in the persistence extension when persisting with a date.

It is not sure it solves the whole issue, but it is a bug that should be fixed.

Signed-off-by: Mark Herwege <[email protected]>
@jlaur
Copy link
Contributor

jlaur commented Jun 5, 2024

Thanks for the fix, @mherwege! I'm pretty sure this is causing the issue I'm having with JDBC persistence, since alias is not supported, thus state and timestamp not being considered in these overloads:

https://github.com/openhab/openhab-addons/blob/43fa2c77680bf71dd554e1dcdbcae343851cd7c0/bundles/org.openhab.persistence.jdbc/src/main/java/org/openhab/persistence/jdbc/internal/JdbcPersistenceService.java#L143-L157

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

Thanks!

@J-N-K J-N-K added the bug An unexpected problem or unintended behavior of the Core label Jun 5, 2024
@J-N-K J-N-K added this to the 4.2 milestone Jun 5, 2024
@J-N-K J-N-K merged commit d092c51 into openhab:main Jun 5, 2024
4 checks passed
@mherwege mherwege deleted the persistence_persist branch June 8, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants