In Blob.getBytes(long position, int length) position is an offset
Kris Jurka <books@ejurka.com>
In Blob.getBytes(long position, int length) position is an offset starting at 1, not zero as the driver was previously doing. Thanks to Emmanuel Bernard for the report.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/jdbc/org/postgresql/errors.properties | modified | +1 −0 |
| src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Blob.java | modified | +7 −2 |
| src/interfaces/jdbc/org/postgresql/test/jdbc2/BlobTest.java | modified | +21 −9 |