We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca26380 commit 68f377bCopy full SHA for 68f377b
examples/loading/src/main/java/com/example/Example.java
@@ -54,8 +54,9 @@ public static void main(String[] args) throws SQLException {
54
PGBinaryObject[] values = {new PGvector(embeddings.get(i))};
55
56
// write row
57
- ByteConverter.int2(buffer, 0, values.length);
58
- int pos = 2;
+ int pos = 0;
+ ByteConverter.int2(buffer, pos, values.length);
59
+ pos += 2;
60
for (int j = 0; j < values.length; j++) {
61
PGBinaryObject value = values[j];
62
int len = value.lengthInBytes();
0 commit comments