Skip to content

Commit

Permalink
0003033: A beanshell script transform should be able to return a non
Browse files Browse the repository at this point in the history
string value (which would be translated to a screen)
  • Loading branch information
chenson42 committed Mar 30, 2017
1 parent 0c6d31c commit c4c2eb1
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -143,13 +143,14 @@ public NewAndOldValue transform(IDatabasePlatform platform,
interpreter.unset(columnName);
}

if (result == null) {
return null;
}
else if (result instanceof String) {
if (result instanceof String) {
return new NewAndOldValue((String) result, null);
} else {
} else if (result instanceof NewAndOldValue) {
return (NewAndOldValue) result;
} else if (result != null) {
return new NewAndOldValue(result.toString(), null);
} else {
return null;
}
} catch (TargetError evalEx) {
Throwable ex = evalEx.getTarget();
Expand Down

0 comments on commit c4c2eb1

Please sign in to comment.