mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
[Repositories] Fix datetime zero-value save behavior (#3976)
This commit is contained in:
@@ -168,16 +168,16 @@ public:
|
||||
RaidMembers e{};
|
||||
|
||||
e.id = row[0] ? strtoull(row[0], nullptr, 10) : 0;
|
||||
e.raidid = static_cast<int32_t>(atoi(row[1]));
|
||||
e.charid = static_cast<int32_t>(atoi(row[2]));
|
||||
e.bot_id = static_cast<int32_t>(atoi(row[3]));
|
||||
e.raidid = row[1] ? static_cast<int32_t>(atoi(row[1])) : 0;
|
||||
e.charid = row[2] ? static_cast<int32_t>(atoi(row[2])) : 0;
|
||||
e.bot_id = row[3] ? static_cast<int32_t>(atoi(row[3])) : 0;
|
||||
e.groupid = row[4] ? static_cast<uint32_t>(strtoul(row[4], nullptr, 10)) : 0;
|
||||
e._class = static_cast<int8_t>(atoi(row[5]));
|
||||
e.level = static_cast<int8_t>(atoi(row[6]));
|
||||
e._class = row[5] ? static_cast<int8_t>(atoi(row[5])) : 0;
|
||||
e.level = row[6] ? static_cast<int8_t>(atoi(row[6])) : 0;
|
||||
e.name = row[7] ? row[7] : "";
|
||||
e.isgroupleader = static_cast<int8_t>(atoi(row[8]));
|
||||
e.israidleader = static_cast<int8_t>(atoi(row[9]));
|
||||
e.islooter = static_cast<int8_t>(atoi(row[10]));
|
||||
e.isgroupleader = row[8] ? static_cast<int8_t>(atoi(row[8])) : 0;
|
||||
e.israidleader = row[9] ? static_cast<int8_t>(atoi(row[9])) : 0;
|
||||
e.islooter = row[10] ? static_cast<int8_t>(atoi(row[10])) : 0;
|
||||
e.is_marker = row[11] ? static_cast<uint8_t>(strtoul(row[11], nullptr, 10)) : 0;
|
||||
e.is_assister = row[12] ? static_cast<uint8_t>(strtoul(row[12], nullptr, 10)) : 0;
|
||||
e.note = row[13] ? row[13] : "";
|
||||
@@ -339,16 +339,16 @@ public:
|
||||
RaidMembers e{};
|
||||
|
||||
e.id = row[0] ? strtoull(row[0], nullptr, 10) : 0;
|
||||
e.raidid = static_cast<int32_t>(atoi(row[1]));
|
||||
e.charid = static_cast<int32_t>(atoi(row[2]));
|
||||
e.bot_id = static_cast<int32_t>(atoi(row[3]));
|
||||
e.raidid = row[1] ? static_cast<int32_t>(atoi(row[1])) : 0;
|
||||
e.charid = row[2] ? static_cast<int32_t>(atoi(row[2])) : 0;
|
||||
e.bot_id = row[3] ? static_cast<int32_t>(atoi(row[3])) : 0;
|
||||
e.groupid = row[4] ? static_cast<uint32_t>(strtoul(row[4], nullptr, 10)) : 0;
|
||||
e._class = static_cast<int8_t>(atoi(row[5]));
|
||||
e.level = static_cast<int8_t>(atoi(row[6]));
|
||||
e._class = row[5] ? static_cast<int8_t>(atoi(row[5])) : 0;
|
||||
e.level = row[6] ? static_cast<int8_t>(atoi(row[6])) : 0;
|
||||
e.name = row[7] ? row[7] : "";
|
||||
e.isgroupleader = static_cast<int8_t>(atoi(row[8]));
|
||||
e.israidleader = static_cast<int8_t>(atoi(row[9]));
|
||||
e.islooter = static_cast<int8_t>(atoi(row[10]));
|
||||
e.isgroupleader = row[8] ? static_cast<int8_t>(atoi(row[8])) : 0;
|
||||
e.israidleader = row[9] ? static_cast<int8_t>(atoi(row[9])) : 0;
|
||||
e.islooter = row[10] ? static_cast<int8_t>(atoi(row[10])) : 0;
|
||||
e.is_marker = row[11] ? static_cast<uint8_t>(strtoul(row[11], nullptr, 10)) : 0;
|
||||
e.is_assister = row[12] ? static_cast<uint8_t>(strtoul(row[12], nullptr, 10)) : 0;
|
||||
e.note = row[13] ? row[13] : "";
|
||||
@@ -377,16 +377,16 @@ public:
|
||||
RaidMembers e{};
|
||||
|
||||
e.id = row[0] ? strtoull(row[0], nullptr, 10) : 0;
|
||||
e.raidid = static_cast<int32_t>(atoi(row[1]));
|
||||
e.charid = static_cast<int32_t>(atoi(row[2]));
|
||||
e.bot_id = static_cast<int32_t>(atoi(row[3]));
|
||||
e.raidid = row[1] ? static_cast<int32_t>(atoi(row[1])) : 0;
|
||||
e.charid = row[2] ? static_cast<int32_t>(atoi(row[2])) : 0;
|
||||
e.bot_id = row[3] ? static_cast<int32_t>(atoi(row[3])) : 0;
|
||||
e.groupid = row[4] ? static_cast<uint32_t>(strtoul(row[4], nullptr, 10)) : 0;
|
||||
e._class = static_cast<int8_t>(atoi(row[5]));
|
||||
e.level = static_cast<int8_t>(atoi(row[6]));
|
||||
e._class = row[5] ? static_cast<int8_t>(atoi(row[5])) : 0;
|
||||
e.level = row[6] ? static_cast<int8_t>(atoi(row[6])) : 0;
|
||||
e.name = row[7] ? row[7] : "";
|
||||
e.isgroupleader = static_cast<int8_t>(atoi(row[8]));
|
||||
e.israidleader = static_cast<int8_t>(atoi(row[9]));
|
||||
e.islooter = static_cast<int8_t>(atoi(row[10]));
|
||||
e.isgroupleader = row[8] ? static_cast<int8_t>(atoi(row[8])) : 0;
|
||||
e.israidleader = row[9] ? static_cast<int8_t>(atoi(row[9])) : 0;
|
||||
e.islooter = row[10] ? static_cast<int8_t>(atoi(row[10])) : 0;
|
||||
e.is_marker = row[11] ? static_cast<uint8_t>(strtoul(row[11], nullptr, 10)) : 0;
|
||||
e.is_assister = row[12] ? static_cast<uint8_t>(strtoul(row[12], nullptr, 10)) : 0;
|
||||
e.note = row[13] ? row[13] : "";
|
||||
|
||||
Reference in New Issue
Block a user