aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Preparedstatement updates to Oracle 10g BLOB ingnored
 
Similar Threads
Document doc => xml => blob at mySQL
errors in compression & release
How get full Stream of document into other InputStream?
Serialization Problem
Wanted to pack values in java like struct.pack() in python