mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 21:04:15 +08:00
bug fixes
This commit is contained in:
parent
50c6b29920
commit
52f5811461
@ -40,6 +40,8 @@ namespace sqlpp
|
||||
Connection_pool* origin;
|
||||
|
||||
public:
|
||||
pool_connection() : _impl(nullptr), origin(nullptr) {}
|
||||
|
||||
pool_connection(std::unique_ptr<Connection>& connection, Connection_pool* origin)
|
||||
: _impl(std::move(connection)), origin(origin) {}
|
||||
|
||||
@ -86,7 +88,9 @@ namespace sqlpp
|
||||
pool_connection& operator=(const pool_connection&) = delete;
|
||||
pool_connection& operator=(pool_connection&& other)
|
||||
{
|
||||
_impl(std::move(other._impl)), origin(other.origin);
|
||||
_impl = std::move(other._impl);
|
||||
origin = other.origin;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user