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
If you try to unapprove a topic in the recycle bin a error can occur. On some forums, due to database types, it can cause a negative number as well.
In my testing:
BIGINT UNSIGNED value is out of range in '(`smf21git`.`smf_boards`.`num_posts` + -(1))' File: /Sources/Subs-Post.php Line: 2571 UPDATE smf_boards SET num_posts = num_posts + -1, unapproved_posts = unapproved_posts + 1, num_topics = num_topics + -1, unapproved_topics = unapproved_topics + 1 WHERE id_board = 15
On other boards, it seems to allow it to go to -1
The text was updated successfully, but these errors were encountered:
This might be better to set the query to do something like:
num_topics = MAX(0, num_topics + -1), unapproved_topics = MAX(0, unapproved_topics + 1) ```
Sorry, something went wrong.
No branches or pull requests
Description
If you try to unapprove a topic in the recycle bin a error can occur. On some forums, due to database types, it can cause a negative number as well.
Steps to reproduce
In my testing:
On other boards, it seems to allow it to go to -1
Environment (complete as necessary)
Additional information/references
The text was updated successfully, but these errors were encountered: