cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Kurz" <crk...@gmx.de>
Subject AW: AbstractDatabaseAction: Tiny bug? (Fix included)
Date Fri, 11 Jul 2003 06:07:23 GMT
Sorry, forgot to say this applies to 2.0.4


-----Urspr√ľngliche Nachricht-----
Von: Christian Kurz [mailto:crkurz@gmx.de] 
Gesendet: Freitag, 11. Juli 2003 08:03
An: bloritsch@apache.org; balld@apache.org; users@cocoon.apache.org
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message