mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-04 18:09:11 -05:00
Fix incorrect for_update function, #583
This commit is contained in:
@@ -162,9 +162,8 @@ namespace sqlpp
|
||||
return context;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
auto for_update(T&& t) -> decltype(statement_t<void, no_for_update_t>().for_update(std::forward<T>(t)))
|
||||
inline auto for_update() -> decltype(statement_t<void, no_for_update_t>().for_update())
|
||||
{
|
||||
return statement_t<void, no_for_update_t>().for_update(std::forward<T>(t));
|
||||
return statement_t<void, no_for_update_t>().for_update();
|
||||
}
|
||||
} // namespace sqlpp
|
||||
|
||||
Reference in New Issue
Block a user