@@ -49,7 +49,7 @@ void test_halfvec(pqxx::connection &conn) {
4949
5050 pqxx::nontransaction tx (conn);
5151 auto embedding = pgvector::HalfVector ({1 , 2 , 3 });
52- pgvector::HalfType arr[] = {4 , 5 , 6 };
52+ pgvector::Half arr[] = {4 , 5 , 6 };
5353 auto embedding2 = pgvector::HalfVector (std::span{arr, 3 });
5454 tx.exec (" INSERT INTO items (half_embedding) VALUES ($1), ($2), ($3)" , {embedding, embedding2, std::nullopt });
5555
@@ -186,13 +186,13 @@ void test_halfvec_to_string() {
186186#endif
187187
188188 assert_exception<pqxx::conversion_overrun>([] {
189- pqxx::to_string (pgvector::HalfVector (std::vector<pgvector::HalfType >(16001 )));
189+ pqxx::to_string (pgvector::HalfVector (std::vector<pgvector::Half >(16001 )));
190190 }, " halfvec cannot have more than 16000 dimensions" );
191191}
192192
193193void test_halfvec_from_string () {
194194 assert_equal (pqxx::from_string<pgvector::HalfVector>(" [1,2,3]" ), pgvector::HalfVector ({1 , 2 , 3 }));
195- assert_equal (pqxx::from_string<pgvector::HalfVector>(" []" ), pgvector::HalfVector (std::vector<pgvector::HalfType >{}));
195+ assert_equal (pqxx::from_string<pgvector::HalfVector>(" []" ), pgvector::HalfVector (std::vector<pgvector::Half >{}));
196196
197197 assert_exception<pqxx::conversion_error>([] {
198198 auto _ = pqxx::from_string<pgvector::HalfVector>(" " );
0 commit comments