title: A Java preparedStatement with a setBigDecimal parameter raises ORA-03115
body: <p>The problem is: I'm setting a preparedStatement for a query in a table with this fields (among others):</p>
  
  <pre><code>TABLE1_RSPN NUMBER(8,0)
  TABLE1_AFDV NUMBER(8,0)
  TABLE1_VALUE    NUMBER(17,2)
  TABLE1_NOTE VARCHAR2(255 BYTE)
  TABLE1_USR  VARCHAR2(20 BYTE)
  </code></pre>
  
  <p>...</p>
  
  <p>Trying to get some info into my Java app, I set a preparedStatement which raises the Oracle exception <em>ORA-03115 unsupported network datatype or representation.</em></p>
  
  <p>The relevant Java code is this:</p>
  
  <pre><code>sentSQL = "SELECT TABLE1.*, TABLE2.CIAS FROM TABLE1, TABLE2 WHERE TABLE1_RSPN = ?" +
  " AND TABLE2_AFDV = TABLE1_AFDV";
  ps = con.prepareStatement(sentSQL);
  ps.setBigDecimal(1, dto.getCodResponsability());
  rs = ps.executeQuery(sentSQL);
  </code></pre>
  
  <p>CodResponsability is BigDecimal. I've also tried with Double and Long, with no joy.</p>
  
  <p>Thanks in advance for your help!</p>