Bugs item #983945, was opened at 2004-07-02 11:57
Message generated for change (Settings changed) made by loubyansky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=983945&group_id=22866

>Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: radl (radl01)
>Assigned to: Alexey Loubyansky (loubyansky)
Summary: CMP and Sybase JConnect (Short field)

Initial Comment:
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.JDBCUtil) in
setParameter method a litle bit: I added one more case
Code:

        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;
        

Jan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=983945&group_id=22866


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to