-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Database resets when gui is opened #1449
Comments
Hmm, are there any errors in log file when it happens? Oh, it is POSTGRESQL database... hmm... Does it happen when relogging is fast? or even after some minutes, it is still cleared? |
It is done due #246 reported that relog could be done faster than async saving.
No errors. It also does not happen on the relog, the database is fine then. It happens on the first gui load after relog. Amount of time doesn't matter. It will still do it after hours, and across server restarts. |
I still cannot reproduce the issue. However, I do not have a POSTGRESQL database. Update... I setup POSTGRESQL and still cannot reproduce the issue. |
Update... :D Sorry... |
This is a major bug in BentoBox with POSTGRESQL database. |
Query that SQL Handler creates for checking if object exists:
By looks of it, the issue is with extra UpdateIt must be only Using MySQL I ended up with a request:
So it looks like that POSTGRESQL does not like extra |
Refactor code around using quotes for uniqueId's. It's required for MYSQL but not for SQLITE or POSTGRESQL. #1449
LoadObject and DeleteObject were also broken. |
Description
Describe the bug
I have an issue where when the user logs back in and does /is challanges their database player data record gets reset. It's completely fine as long as they don't relog, and relogging itse;lf doesn't clear it, watched it change in real time.
Steps to reproduce the behavior
1: complete challenges
2: relog
3: do
is challenges
4: see that none are complete
Expected behavior
Database should not reset
Screenshots and videos (Optional)
Environment
Output of
/bbox version
(Mandatory)Plugins (Optional)
Additional context (Optional)
The text was updated successfully, but these errors were encountered: