progress on session::update

This commit is contained in:
Sascha Kühl
2025-10-10 15:51:51 +02:00
parent 463647ba59
commit 1fd2066946
2 changed files with 44 additions and 2 deletions
+2 -1
View File
@@ -194,9 +194,10 @@ utils::result<object::object_ptr<Type>, utils::error> session::update( const obj
return utils::failure(info.err());
}
const auto col = sql::column(info->get()->prototype().primary_key()->name());
auto res = query::query::update(info->get().name())
.set(*obj)
// .where(sql::column(info->prototype().primary_key()->name()) == _)
.where(col == utils::_)
.prepare(*this);
if (!res) {
return utils::failure(res.err());