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
/updates should be validated #7978
Comments
@fafhrd91 - FYI |
it is not clear why it should be pl+=2 instead of 1, it is placeholder position and 2 would create references outside of passed parameters. i would suggest to provide generated query and show why it is wrong. |
@fafhrd91
Then only the first half IDs are corrects, and you modify unexpected IDs. The expected syntax is AFAIK
This is why pl += 2 seems to be needed IMHO. |
it is not what get generated, pl is not get reseted between two loops |
@fafhrd91 But the main idea of this issue is still valid. |
OS (Please include kernel version)
All
Expected Behavior
Calling
/updates
should actually update the database for all frameworks.The TFB validation bot should validate this expected behavior.
Actual Behavior
The TFB code does not validate that
/updates
did actually update the expected rows.Steps to reproduce behavior
/updates?queries=10
on a buggy server[{"id":8744,"randomNumber":4603},{"id":2770,"randomNumber":1540},...
IMHO the TFB validator should actually check that
select randomNumber from worlds where id=8744
is actually 4603, for all returned pairs of the JSON array.Other details and logs
This won't affect performance measurement, because the same number of updates are done from a random number.
But it should help test correct code. :)
The text was updated successfully, but these errors were encountered: