This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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: 80
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: 80
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
 
Similar Threads
How get full Stream of document into other InputStream?
errors in compression & release
Document doc => xml => blob at mySQL
Wanted to pack values in java like struct.pack() in python
Serialization Problem