Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultLobHandler should honour "wrapAsLob" for getting data too [SPR-5376] #10049

Closed
spring-projects-issues opened this issue Dec 25, 2008 · 1 comment
Assignees
Labels
type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 25, 2008

Antoni Reus opened SPR-5376 and commented

"wrapAsLob" was added in #7007 to DefaultLobHandler to make it work with Postgresql BLOBs.

But this setting is only used for setBlobAsBytes/setBlobAsBinaryStream. So saving a byte[] field in a Postgresql BLOB works well.
But retrieving data doesn't work, it returns the "oid" number as a byte[].

Methods getBlobAsBytes and getBlobAsBinaryStream of DefaultLobHandler should use getBlob if wrapAsLob is set to true.


Affects: 2.5.6

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Thanks for pointing this out! As of 3.0 M2, DefaultLobHandler uses explicit Blob/Clob access for reading when "wrapAsLob"=true.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants