1 Reply Latest reply on Jul 2, 2004 3:37 AM by Alexey Loubyansky

    CMP and Sybase JConnect

    Jan Radl Newbie

      Hi all,

      I had a problem with Short CMP fields with JConnect JDBC driver for ASE/ASA. JConnect does not support setObject() method with Short Object type.

      I had to change a source code (org.jboss.ejb.plugins.cmp.jdbc.JDBCUtils) in setParameter method a litle bit: I added one more case

       case Types.SMALLINT: // due to setObject problem with JConnect
       if (value instanceof Short) {
       ps.setShort(index, ((Short)value).shortValue());
       } else {
       ps.setObject(index, value, jdbcType);
       }
       break;
      


      I'm sorry I posted this code in this forum but I don't know where and how to noticed JBoss developers.

      JBoss 3.2.3

      Jan