[Repositories] Regenerate repositories with int64 support, reserved word support (#1440)

This commit is contained in:
Chris Miles
2021-06-25 15:05:47 -05:00
committed by GitHub
parent 1c75236508
commit 82d6e0138d
157 changed files with 1003 additions and 647 deletions
@@ -4,7 +4,7 @@
* This repository was automatically generated and is NOT to be modified directly.
* Any repository modifications are meant to be made to the repository extending the base.
* Any modifications to base repositories are to be made by the generator only
*
*
* @generator ./utils/scripts/generators/repository-generator.pl
* @docs https://eqemu.gitbook.io/server/in-development/developer-area/repositories
*/
@@ -18,7 +18,7 @@
class BaseSpellBucketsRepository {
public:
struct SpellBuckets {
int spellid;
int64 spellid;
std::string key;
std::string value;
};
@@ -107,7 +107,7 @@ public:
if (results.RowCount() == 1) {
SpellBuckets entry{};
entry.spellid = atoi(row[0]);
entry.spellid = strtoll(row[0], NULL, 10);
entry.key = row[1] ? row[1] : "";
entry.value = row[2] ? row[2] : "";
@@ -235,7 +235,7 @@ public:
for (auto row = results.begin(); row != results.end(); ++row) {
SpellBuckets entry{};
entry.spellid = atoi(row[0]);
entry.spellid = strtoll(row[0], NULL, 10);
entry.key = row[1] ? row[1] : "";
entry.value = row[2] ? row[2] : "";
@@ -262,7 +262,7 @@ public:
for (auto row = results.begin(); row != results.end(); ++row) {
SpellBuckets entry{};
entry.spellid = atoi(row[0]);
entry.spellid = strtoll(row[0], NULL, 10);
entry.key = row[1] ? row[1] : "";
entry.value = row[2] ? row[2] : "";