This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Preparedstatement updates to Oracle 10g BLOB ingnored
 
Similar Threads
Serialization Problem
errors in compression & release
Document doc => xml => blob at mySQL
How get full Stream of document into other InputStream?
Wanted to pack values in java like struct.pack() in python