Skip to content

Commit

Permalink
Version 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitigr committed Apr 18, 2022
1 parent 38d77fc commit 38a9f19
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
11 changes: 7 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

## [Unreleased]

- Fix build on older GCC (tested on GCC 9);
- fix build on macOS;
- fix build with libpq older than from PostgreSQL 14.
## [Changes][2.0.1] in v2.0.1 relative to v2.0.0

[Unreleased]: https://github.com/dmitigr/pgfe/compare/v2.0.0...HEAD
- Fixed build on older GCC (tested on GCC 9);
- fixed build on macOS;
- fixed build with libpq older than from PostgreSQL 14.

[Unreleased]: https://github.com/dmitigr/pgfe/compare/v2.0.1...HEAD
[2.0.1]: https://github.com/dmitigr/pgfe/compare/v2.0.0...v2.0.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [PostgreSQL] C++ driver
# [PostgreSQL] C++ driver (PostgreSQL client API)

`dmitigr::pgfe` (*PostGres FrontEnd*) - is an advanced, feature rich and
cross-platform [PostgreSQL] driver written in C++. The development is focused
Expand Down
2 changes: 1 addition & 1 deletion cmake/dmitigr_pgfe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Info
# ------------------------------------------------------------------------------

dmitigr_cpplipa_set_library_info(pgfe 2 0 0 "Client API for PostgreSQL")
dmitigr_cpplipa_set_library_info(pgfe 2 0 1 "PostgreSQL client API")

# ------------------------------------------------------------------------------
# Sources
Expand Down
2 changes: 1 addition & 1 deletion doc/pgfe/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [PostgreSQL] C++ driver
# [PostgreSQL] C++ driver (PostgreSQL client API)

`dmitigr::pgfe` (*PostGres FrontEnd*) - is an advanced, feature rich and
cross-platform [PostgreSQL] driver written in C++. The development is focused
Expand Down
2 changes: 1 addition & 1 deletion src/pgfe/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ constexpr std::int_fast32_t version() noexcept
// Actual values are set in CMakeLists.txt.
constexpr std::int_least32_t major = 2;
constexpr std::int_least32_t minor = 0;
constexpr std::int_least32_t patch = 0;
constexpr std::int_least32_t patch = 1;

// 111.222.333 -> 111222333
return major*1000000 + minor*1000 + patch;
Expand Down
2 changes: 1 addition & 1 deletion test/pgfe/pgfe-unit-benchmark_array_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ try {
namespace pgfe = dmitigr::pgfe;

auto [output_file, conn] = pgfe::test::arraybench::prepare(argc, argv);
conn->execute([&output_file](auto&& row)
conn->execute([output_file = std::move(output_file)](auto&& row)mutable
{
using Array = pgfe::Array_optional1<std::string>;
for (const auto& elem : pgfe::to<Array>(row[0])) {
Expand Down
2 changes: 1 addition & 1 deletion test/pgfe/pgfe-unit-benchmark_array_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ try {
namespace pgfe = dmitigr::pgfe;

auto [output_file, conn] = pgfe::test::arraybench::prepare(argc, argv);
conn->execute([&output_file](auto&& row)
conn->execute([output_file = std::move(output_file)](auto&& row)mutable
{
const auto fc = row.field_count();
DMITIGR_ASSERT(fc == 5);
Expand Down

0 comments on commit 38a9f19

Please sign in to comment.