weapons
weapons copied to clipboard
[SQL]PRIMARY key duplicate
Error occurred
[weapons.smx] Insert Query failed! query: "INSERT INTO weapons (steamid) VALUES ('STEAM_1:1:xxxxxx79')" error: "Duplicate entry 'STEAM_1:1:xxxxxx79' for key 'PRIMARY'".
What problem did this cause? (shouldn't cause any)
It's a common problem, exists in normal conditions.
I don't remember currently what happen, but I've solved it by changing Insert
to https://www.mysqltutorial.org/mysql-insert-or-update-on-duplicate-key-update/
I also noticed this error in my logs, but I didn't see if there is any direct BUG for the players.
this seems like an unimportant bug, but if anyone wants to fix it and send a pull request, you're more than welcome
this seems like an unimportant bug, but if anyone wants to fix it and send a pull request, you're more than welcome
@kgns ^
Fixed using this version: https://github.com/kgns/weapons/pull/244
So far no new errors registered.