Trinitycore: The problem with the SQL query in the table "character_pet_declinedname".

Created on 10 Mar 2019  路  7Comments  路  Source: TrinityCore/TrinityCore

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:

  1. Enable the DeclinedNames = 1 option in worldserver.conf and connect to the server from a russian client.
  2. Create a hunter and tame a pet.
  3. Rename the pet.

Branch(es):

3.3.5

TC rev. hash/commit:

8140775

Operating system:
Arch Linux

Most helpful comment

Hah, it was only broken for 7 years

All 7 comments

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. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jonne733 picture Jonne733  路  3Comments

Rochet2 picture Rochet2  路  3Comments

ZenoX92 picture ZenoX92  路  3Comments

Rushor picture Rushor  路  3Comments

tje3d picture tje3d  路  3Comments