Skip to content

Commit

Permalink
give better error for user if transform_point has an invalid value.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Feb 28, 2012
1 parent 43db58c commit 5d2f079
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -230,7 +230,12 @@ public TransformTableNodeGroupLink mapRow(Row rs) {
table.setTargetCatalogName(rs.getString("target_catalog_name"));
table.setTargetSchemaName(rs.getString("target_schema_name"));
table.setTargetTableName(rs.getString("target_table_name"));
table.setTransformPoint(TransformPoint.valueOf(rs.getString("transform_point")));
try {
table.setTransformPoint(TransformPoint.valueOf(rs.getString("transform_point").toUpperCase()));
} catch (RuntimeException ex) {
log.warn("Invalid value provided for transform_point: {}", rs.getString("transform_point"));
throw ex;
}
table.setTransformOrder(rs.getInt("transform_order"));
table.setUpdateFirst(rs.getBoolean("update_first"));
table.setDeleteAction(DeleteAction.valueOf(rs.getString("delete_action")));
Expand Down

0 comments on commit 5d2f079

Please sign in to comment.