Sorry, forgot to say this applies to 2.0.4

-----Urspr�ngliche Nachricht-----
Von: Christian Kurz [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 11. Juli 2003 08:03
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: AbstractDatabaseAction: Tiny bug? (Fix included)

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]




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

Reply via email to