Description:
The problem with the SQL query in the table "character_pet_declinedname".
Current behaviour:
SQL(p): INSERT INTO character_pet_declinedname (id, owner, genitive, dative, accusative, instrumental, prepositional) VALUES (1, '孝械褋褌邪', '孝械褋褌褍', '孝械褋褌邪', '孝械褋褌芯屑', '孝械褋褌械', 0)
Expected behaviour:
The SQL query should look like this: "INSERT INTO character_pet_declinedname (id, owner, genitive, dative, accusative, instrumental, prepositional) VALUES (1, 0,'孝械褋褌邪', '孝械褋褌褍', '孝械褋褌邪', '孝械褋褌芯屑', '孝械褋褌械') ". But then again, why is the value of "owner" equal to 0?
Steps to reproduce the problem:
Branch(es):
3.3.5
TC rev. hash/commit:
8140775
Operating system:
Arch Linux
I don't know why that happens, but this is some of the relevant code:
https://github.com/TrinityCore/TrinityCore/blob/8140775bdaa84a25e7f68c42fe2b93d6aab1ca7c/src/server/database/Database/Implementation/CharacterDatabase.cpp#L573-L579
Yes, everything is correct in this file, but the data for the query is generated here:
https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Handlers/PetHandler.cpp
This, again, as I understand it, and I could be wrong.
Does this happen only with Russian client ?
@jackpoz Well, in fact, this should work only with a russian client.
Yeah, declined names are a feature of russian client
Hah, it was only broken for 7 years
Thanks for solving the issue, and quite quick too. 馃憤
Most helpful comment
Hah, it was only broken for 7 years