We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Over time the column types in a database might no longer match the types used when creating new tables:
datetime
timestamp(3)
Having a tool to identify and possibly repair such inconsistencies would be helpful.
Checking columns:
SELECT * FROM information_schema.columns WHERE table_schema = 'test' AND table_name = 'Item0001'
See https://dev.mysql.com/doc/refman/8.0/en/datetime.html
Verify:
This is a follow-up to #13661.
The text was updated successfully, but these errors were encountered:
This issue has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/persistence-problem-item-cannot-be-cast-from-string-to-int/141166/3
Sorry, something went wrong.
jlaur
Successfully merging a pull request may close this issue.
Over time the column types in a database might no longer match the types used when creating new tables:
datetime
was used for the time column, whereas this is nowtimestamp(3)
: https://github.com/openhab/openhab1-addons/blob/f7c26e5361c1cfe0382817ce7310a624e4ce89a0/bundles/persistence/org.openhab.persistence.mysql/java/org/openhab/persistence/mysql/internal/MysqlPersistenceService.java#L317Having a tool to identify and possibly repair such inconsistencies would be helpful.
Notes
Checking columns:
MySQL migration from DATETIME to TIMESTAMP(3)
See https://dev.mysql.com/doc/refman/8.0/en/datetime.html
Verify:
This is a follow-up to #13661.
The text was updated successfully, but these errors were encountered: