ResultSetMetaData rsmd = null;
boolean fromName = false;
boolean toName = false;
try {
stat = conn.createStatement();
Segment tableName = new CharSegment(mm.relation());
rs = stat.executeQuery(db.getResultSetMetaSql(TableName.render(tableName)));
rsmd = rs.getMetaData();
fromName = !Daos.isIntLikeColumn(rsmd, mm.from());
toName = !Daos.isIntLikeColumn(rsmd, mm.to());
}