Skip to content

Commit 6f92c1a

Browse files
committed
Improved example [skip ci]
1 parent e788a2f commit 6f92c1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/pgvector/LoadingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
public class LoadingTest {
1919
@Test
20-
void example() throws SQLException, UnsupportedEncodingException {
20+
void example() throws SQLException {
2121
if (System.getenv("TEST_LOADING") == null) {
2222
return;
2323
}
@@ -56,7 +56,7 @@ void example() throws SQLException, UnsupportedEncodingException {
5656
}
5757

5858
PGvector embedding = new PGvector(embeddings.get(i));
59-
byte[] bytes = (embedding.getValue() + "\n").getBytes("UTF-8");
59+
byte[] bytes = (embedding.getValue() + "\n").getBytes();
6060
copyIn.writeToCopy(bytes, 0, bytes.length);
6161
}
6262
copyIn.endCopy();

0 commit comments

Comments
 (0)