mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 22:57:15 +00:00
Repository tweaks [skip ci]
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* This repository was automatically generated on Apr 5, 2020 and is NOT
|
||||
* to be modified directly. Any repository modifications are meant to be made to
|
||||
* 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
|
||||
*/
|
||||
@@ -172,6 +172,7 @@ public:
|
||||
|
||||
auto columns = Columns();
|
||||
|
||||
update_values.push_back(columns[0] + " = " + std::to_string(spell_buckets_entry.spellid));
|
||||
update_values.push_back(columns[1] + " = '" + EscapeString(spell_buckets_entry.key) + "'");
|
||||
update_values.push_back(columns[2] + " = '" + EscapeString(spell_buckets_entry.value) + "'");
|
||||
|
||||
@@ -194,6 +195,7 @@ public:
|
||||
{
|
||||
std::vector<std::string> insert_values;
|
||||
|
||||
insert_values.push_back(std::to_string(spell_buckets_entry.spellid));
|
||||
insert_values.push_back("'" + EscapeString(spell_buckets_entry.key) + "'");
|
||||
insert_values.push_back("'" + EscapeString(spell_buckets_entry.value) + "'");
|
||||
|
||||
@@ -206,7 +208,7 @@ public:
|
||||
);
|
||||
|
||||
if (results.Success()) {
|
||||
spell_buckets_entry.id = results.LastInsertedID();
|
||||
spell_buckets_entry.spellid = results.LastInsertedID();
|
||||
return spell_buckets_entry;
|
||||
}
|
||||
|
||||
@@ -224,6 +226,7 @@ public:
|
||||
for (auto &spell_buckets_entry: spell_buckets_entries) {
|
||||
std::vector<std::string> insert_values;
|
||||
|
||||
insert_values.push_back(std::to_string(spell_buckets_entry.spellid));
|
||||
insert_values.push_back("'" + EscapeString(spell_buckets_entry.key) + "'");
|
||||
insert_values.push_back("'" + EscapeString(spell_buckets_entry.value) + "'");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user