mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 08:17:16 +00:00
[Repositories] Regenerate repositories with int64 support, reserved word support (#1440)
This commit is contained in:
@@ -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] : "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user