Bug Fix] MariaDB 10.5.x error with parcel function GetParcelCountAndCharacterName (#4281)

MariaDB was returning inconsistent results with a JOIN for parcel function GetParcelCountAndCharacterName
This commit is contained in:
Mitch Freeman 2024-04-23 00:45:33 -03:00 committed by GitHub
parent 6b698b5f51
commit 1891c9b6de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ public:
auto results = db.QueryDatabase(
fmt::format(
"SELECT c.name, COUNT(p.id), c.id FROM character_data c "
"JOIN character_parcels p ON p.char_id = c.id "
"LEFT JOIN character_parcels p ON p.char_id = c.id "
"WHERE c.name = '{}' "
"LIMIT 1",
character_name)