Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions orm_lib/inc/drogon/orm/SqlBinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,22 +361,22 @@ class DROGON_EXPORT SqlBinder : public trantor::NonCopyable
// LOG_DEBUG << "ptr callback";
isExceptionPtr_ = true;
exceptionPtrCallback_ = std::forward<CallbackType>(callback);
return *this;
}
else
{
isExceptionPtr_ = false;
exceptionCallback_ = std::forward<CallbackType>(callback);
return *this;
}
}
else if constexpr (traits::isSqlCallback)

if constexpr (traits::isSqlCallback)
{
callbackHolder_ = std::shared_ptr<CallbackHolderBase>(
new CallbackHolder<typename std::decay<CallbackType>::type>(
std::forward<CallbackType>(callback)));
return *this;
}

return *this;
}

template <typename T>
Expand Down
Loading