Subject | Re: getObject and blob |
---|---|
Author | rrokytskyy |
Post date | 2002-03-23T23:05:47Z |
> My problem is the following: According to this specificationI think you are right, getObject() should return byte[]. I will
> the JDBC driver should return a byte[] object when a BLOB is read
> from a ResultSet using getObject(). But in FBBlobField.java at line
> 125 the code returns a Blob object instead of the byte[] object.
correct this after I check the specs once more.
> IMHO this:This is ok. There should not be any side effects, since getBytes() is
> Object getObject() throws SQLException {
> return getBlob();
> }
>
> should be replaced with this:
> Object getObject() throws SQLException {
> return getBytes();
> }
getBlob() + load BLOB data and convert them to byte[].
Best regards,
Roman Rokytskyy