File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: build
22on : [push, pull_request]
33jobs :
44 build :
5- runs-on : ubuntu-24 .04
5+ runs-on : ubuntu-22 .04
66 steps :
77 - uses : actions/checkout@v4
88 - uses : ankane/setup-postgres@v1
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
2424 option (BUILD_TESTING "" OFF )
2525
2626 if (BUILD_TESTING)
27+ option (BUILD_SHARED_LIBS "" ON )
28+
2729 include (FetchContent)
2830
2931 FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
Original file line number Diff line number Diff line change 2121// / @cond
2222
2323namespace pqxx {
24- template <> std::string const type_name<pgvector::Vector>{" vector" };
24+ template <> inline std::string const type_name<pgvector::Vector>{" vector" };
2525
2626template <> struct nullness <pgvector::Vector> : pqxx::no_null<pgvector::Vector> {};
2727
@@ -66,7 +66,7 @@ template <> struct string_traits<pgvector::Vector> {
6666 }
6767};
6868
69- template <> std::string const type_name<pgvector::HalfVector>{" halfvec" };
69+ template <> inline std::string const type_name<pgvector::HalfVector>{" halfvec" };
7070
7171template <> struct nullness <pgvector::HalfVector> : pqxx::no_null<pgvector::HalfVector> {};
7272
@@ -111,7 +111,7 @@ template <> struct string_traits<pgvector::HalfVector> {
111111 }
112112};
113113
114- template <> std::string const type_name<pgvector::SparseVector>{" sparsevec" };
114+ template <> inline std::string const type_name<pgvector::SparseVector>{" sparsevec" };
115115
116116template <> struct nullness <pgvector::SparseVector> : pqxx::no_null<pgvector::SparseVector> {};
117117
You can’t perform that action at this time.
0 commit comments