diff --git a/include/sqlpp11/postgresql/connection.h b/include/sqlpp11/postgresql/connection.h index dbd14781..6d7cd399 100644 --- a/include/sqlpp11/postgresql/connection.h +++ b/include/sqlpp11/postgresql/connection.h @@ -28,9 +28,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include #include -#include #include #include @@ -359,7 +357,7 @@ namespace sqlpp _context_t context{*this}; serialize(x, context); - return execute(context.str()); + return static_cast(execute(context.str())->result.affected_rows()); } template <