Changeset 285
- Timestamp:
- 05/19/08 20:13:49 (8 months ago)
- Files:
-
- lex/trunk/src/com/qwirx/db/sql/SqlDatabase.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lex/trunk/src/com/qwirx/db/sql/SqlDatabase.java
r283 r285 458 458 } 459 459 } 460 460 461 461 public String getStringNotNull(String colName, String defaultValue) 462 462 throws SQLException … … 471 471 return value; 472 472 } 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); 479 482 } 480 483 catch (SQLException e) … … 489 492 } 490 493 } 491 494 492 495 /** 493 496 * Ugly hack replacement for ResultSet.getString() because
