Skip to content

Commit 8132687

Browse files
committed
Updated libpqxx for tests and examples
1 parent 3d658fb commit 8132687

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
2626
if(BUILD_TESTING)
2727
include(FetchContent)
2828

29-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
29+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
3030
FetchContent_MakeAvailable(libpqxx)
3131

3232
add_executable(test test/halfvec_test.cpp test/main.cpp test/pqxx_test.cpp test/sparsevec_test.cpp test/vector_test.cpp)

examples/citus/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
66

77
include(FetchContent)
88

9-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
9+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1010
FetchContent_MakeAvailable(libpqxx)
1111

1212
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/cohere/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include(FetchContent)
88

99
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1010
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
11-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1212
FetchContent_MakeAvailable(cpr json libpqxx)
1313

1414
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/disco/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 20)
77
include(FetchContent)
88

99
FetchContent_Declare(disco GIT_REPOSITORY https://github.com/ankane/disco-cpp.git GIT_TAG v0.1.3)
10-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
10+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1111
FetchContent_MakeAvailable(disco libpqxx)
1212

1313
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/hybrid/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include(FetchContent)
88

99
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1010
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
11-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1212
FetchContent_MakeAvailable(cpr json libpqxx)
1313

1414
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/loading/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
66

77
include(FetchContent)
88

9-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
9+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1010
FetchContent_MakeAvailable(libpqxx)
1111

1212
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/openai/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include(FetchContent)
88

99
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1010
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
11-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1212
FetchContent_MakeAvailable(cpr json libpqxx)
1313

1414
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/rdkit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ find_package(Boost COMPONENTS iostreams serialization system REQUIRED)
99

1010
include(FetchContent)
1111

12-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
12+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1313
FetchContent_MakeAvailable(libpqxx)
1414

1515
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/sparse/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include(FetchContent)
88

99
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1010
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
11-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.2)
1212
FetchContent_MakeAvailable(cpr json libpqxx)
1313

1414
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

test/pqxx_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void test_sparsevec_from_string() {
245245
auto unused = pqxx::from_string<pgvector::SparseVector>("{ }/");
246246
assert(false);
247247
} catch (const pqxx::conversion_error& e) {
248-
assert(std::string_view(e.what()) == "Could not convert '' to int");
248+
assert(std::string_view(e.what()) == "Could not convert '' to int: Invalid argument.");
249249
}
250250

251251
try {
@@ -259,7 +259,7 @@ void test_sparsevec_from_string() {
259259
auto unused = pqxx::from_string<pgvector::SparseVector>("{:}/1");
260260
assert(false);
261261
} catch (const pqxx::conversion_error& e) {
262-
assert(std::string_view(e.what()) == "Could not convert '' to int");
262+
assert(std::string_view(e.what()) == "Could not convert '' to int: Invalid argument.");
263263
}
264264

265265
try {
@@ -294,7 +294,7 @@ void test_sparsevec_from_string() {
294294
auto unused = pqxx::from_string<pgvector::SparseVector>("{a:1}/1");
295295
assert(false);
296296
} catch (const pqxx::conversion_error& e) {
297-
assert(std::string_view(e.what()) == "Could not convert 'a' to int");
297+
assert(std::string_view(e.what()) == "Could not convert 'a' to int: Invalid argument.");
298298
}
299299

300300
try {
@@ -308,7 +308,7 @@ void test_sparsevec_from_string() {
308308
auto unused = pqxx::from_string<pgvector::SparseVector>("{}/a");
309309
assert(false);
310310
} catch (const pqxx::conversion_error& e) {
311-
assert(std::string_view(e.what()) == "Could not convert 'a' to int");
311+
assert(std::string_view(e.what()) == "Could not convert 'a' to int: Invalid argument.");
312312
}
313313
}
314314

0 commit comments

Comments
 (0)