wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
How get full Stream of document into other InputStream?
Serialization Problem
errors in compression & release
Document doc => xml => blob at mySQL
Wanted to pack values in java like struct.pack() in python