Changeset 285

Show
Ignore:
Timestamp:
05/19/08 20:13:49 (8 months ago)
Author:
chris
Message:

Add FIXME comment to getObject()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lex/trunk/src/com/qwirx/db/sql/SqlDatabase.java

    r283 r285  
    458458        } 
    459459    } 
    460      
     460         
    461461    public String getStringNotNull(String colName, String defaultValue) 
    462462    throws SQLException 
     
    471471        return value; 
    472472    } 
    473      
    474     public Object getObject(String colName) throws SQLException 
    475     { 
    476         try 
    477         { 
    478                 return rs.getObject(colName); 
     473         
     474    public Object getObject(String columnName) throws SQLException 
     475    { 
     476        // FIXME date 0000-00-00 in a MySQL database causes 
     477        // an exception when we call getString() on it 
     478         
     479        try 
     480        { 
     481            return rs.getObject(columnName); 
    479482        } 
    480483        catch (SQLException e) 
     
    489492        } 
    490493    } 
    491      
     494         
    492495    /** 
    493496     * Ugly hack replacement for ResultSet.getString() because