Hi there,

when reusing some of the AbstractDatabaseAction code, I found that there
might be a tiny problem when working with CHAR fields: is it correct to
retrieve them as Integers? See code snippet below.

Best regards,
Christian


AbstractDatabaseAction.java:

           ... 
           case Types.BIT:
                value = new Integer(set.getInt(dbcol));
                break;
            case Types.CHAR:
=>                value = new Integer(set.getInt(dbcol));

=> Shouldn't this be: value = new String(set.getString(dbcol));  ?

                break;
            case Types.STRUCT:
                  value = (Struct) set.getObject(dbcol);
            ...





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to