Skip to content

Commit 395de2e

Browse files
committed
Debug
1 parent 73a80af commit 395de2e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22
on: [push, pull_request]
33
jobs:
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

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

include/pgvector/pqxx.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// @cond
2222

2323
namespace pqxx {
24-
template <> std::string const type_name<pgvector::Vector>{"vector"};
24+
template <> inline std::string const type_name<pgvector::Vector>{"vector"};
2525

2626
template <> 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

7171
template <> 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

116116
template <> struct nullness<pgvector::SparseVector> : pqxx::no_null<pgvector::SparseVector> {};
117117

0 commit comments

Comments
 (0)