Thread:
 Oracle BLOB 
 adzinets   26 Apr 2005, 21:00 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: adzinets (26 Apr 2005, 21:00) Replies: 0, Views: 38356
Subject: Oracle BLOB
the nullSafeSet method above doesn't check for nulls. Should be:
<code>
  if (value == null) {
      st.setNull(index, Types.BINARY);
  } else {
    //setting BLOB here
    ...
  }
</code>
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]