This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes Preparedstatement updates to Oracle 10g BLOB ingnored Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Preparedstatement updates to Oracle 10g BLOB ingnored" Watch "Preparedstatement updates to Oracle 10g BLOB ingnored" New topic
Author

Preparedstatement updates to Oracle 10g BLOB ingnored

Matthew Snow
Ranch Hand

Joined: May 02, 2007
Posts: 82
Here is my code.



When I run pstmt.execute() it returns a false with pstmt.getResultSet() returning null and pstmt.getUpdateCount() returning 1. If I use pstmt.executeUpdate(), it returns 0. Could someone explain to me why this Update statement wont execute? Thanks.

Update: if I change the statement to an Insert with a new value, I get the following error: ORA-01460: unimplemented or unreasonable conversion requested.


When you break the big rules, you get a lot of little rules.
Matthew Snow
Ranch Hand

Joined: May 02, 2007
Posts: 82
Apparently this is a bug introduces in Oracle 10g, Bug ID 5872943. Apparently it's resolved in 11.2g.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Preparedstatement updates to Oracle 10g BLOB ingnored