Skip to content

Commit

Permalink
Fix compile error of WCDB C++
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiuwen-chen committed May 6, 2024
1 parent 9e1cba4 commit 8abc60b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cpp/Operation/HandleORMOperation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ class WCDB_API HandleORMOperation : public HandleOperation {
const UnsafeStringView &table,
const Fields &fields = Fields())
{
auto insert
= prepareInsert<ObjectType>().orReplace().intoTable(table).value(&obj);
auto insert = prepareInsert<ObjectType>().orReplace().intoTable(table).value(obj);
if (fields.size() > 0) {
insert.onFields(fields);
}
Expand Down Expand Up @@ -285,8 +284,7 @@ class WCDB_API HandleORMOperation : public HandleOperation {
const UnsafeStringView &table,
const Fields &fields = Fields())
{
auto insert
= prepareInsert<ObjectType>().orIgnore().intoTable(table).value(&obj);
auto insert = prepareInsert<ObjectType>().orIgnore().intoTable(table).value(obj);
if (fields.size() > 0) {
insert.onFields(fields);
}
Expand Down

0 comments on commit 8abc60b

Please sign in to comment.