mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-04 04:38:14 +08:00
Fix errors in the Mapper class template
This commit is contained in:
parent
0a25d6ad85
commit
75d6145b56
@ -712,7 +712,7 @@ inline void Mapper<T>::update(const T &obj,
|
|||||||
std::string sql = "update ";
|
std::string sql = "update ";
|
||||||
sql += T::tableName;
|
sql += T::tableName;
|
||||||
sql += " set ";
|
sql += " set ";
|
||||||
for (auto colName : T::updateColumns())
|
for (auto colName : obj.updateColumns())
|
||||||
{
|
{
|
||||||
sql += colName;
|
sql += colName;
|
||||||
sql += " = $?,";
|
sql += " = $?,";
|
||||||
@ -738,7 +738,7 @@ inline std::future<size_t> Mapper<T>::updateFuture(const T &obj) noexcept
|
|||||||
std::string sql = "update ";
|
std::string sql = "update ";
|
||||||
sql += T::tableName;
|
sql += T::tableName;
|
||||||
sql += " set ";
|
sql += " set ";
|
||||||
for (auto colName : T::updateColumns())
|
for (auto colName : obj.updateColumns())
|
||||||
{
|
{
|
||||||
sql += colName;
|
sql += colName;
|
||||||
sql += " = $?,";
|
sql += " = $?,";
|
||||||
|
Loading…
Reference in New Issue
Block a user