mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 10:11:37 +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
|
||||
*/
|
||||
@@ -184,6 +184,7 @@ public:
|
||||
|
||||
auto columns = Columns();
|
||||
|
||||
update_values.push_back(columns[0] + " = '" + EscapeString(horses_entry.filename) + "'");
|
||||
update_values.push_back(columns[1] + " = " + std::to_string(horses_entry.race));
|
||||
update_values.push_back(columns[2] + " = " + std::to_string(horses_entry.gender));
|
||||
update_values.push_back(columns[3] + " = " + std::to_string(horses_entry.texture));
|
||||
@@ -209,6 +210,7 @@ public:
|
||||
{
|
||||
std::vector<std::string> insert_values;
|
||||
|
||||
insert_values.push_back("'" + EscapeString(horses_entry.filename) + "'");
|
||||
insert_values.push_back(std::to_string(horses_entry.race));
|
||||
insert_values.push_back(std::to_string(horses_entry.gender));
|
||||
insert_values.push_back(std::to_string(horses_entry.texture));
|
||||
@@ -224,7 +226,7 @@ public:
|
||||
);
|
||||
|
||||
if (results.Success()) {
|
||||
horses_entry.id = results.LastInsertedID();
|
||||
horses_entry.filename = results.LastInsertedID();
|
||||
return horses_entry;
|
||||
}
|
||||
|
||||
@@ -242,6 +244,7 @@ public:
|
||||
for (auto &horses_entry: horses_entries) {
|
||||
std::vector<std::string> insert_values;
|
||||
|
||||
insert_values.push_back("'" + EscapeString(horses_entry.filename) + "'");
|
||||
insert_values.push_back(std::to_string(horses_entry.race));
|
||||
insert_values.push_back(std::to_string(horses_entry.gender));
|
||||
insert_values.push_back(std::to_string(horses_entry.texture));
|
||||
|
||||
Reference in New Issue
Block a user