ALL objects can be saved to db now

This commit is contained in:
TinyAtoms
2019-06-29 22:30:47 -03:00
parent 0eee67d3d9
commit c058783a11
6 changed files with 76 additions and 10 deletions

View File

@ -53,7 +53,7 @@ void Customer::save_db() {
statement.insert(38, std::to_string(int(verhicle)));
statement.insert(36, card_code);
statement.insert(32, name);
statement.insert(29, "null");
statement.insert(29, to_string(id));
SQLite::Transaction transaction(data::db);
data::db.exec(statement);
transaction.commit();