valueExpr.validateTypes(null, false);
return valueExpr.getValue(null, null);
}
catch (ResultMissingColumnException e) {
// No column refs should be missing
throw new InternalErrorException("Missing column: " + e.getMessage());
}
catch (NullColumnValueException e) {
throw new InternalErrorException("Null value: " + e.getMessage());
}
catch (RecognitionException e) {
e.printStackTrace();
throw new ParseException(e, sql);
}