Class AvgWithCastFunction

  • All Implemented Interfaces:
    SQLMethod

    public class AvgWithCastFunction
    extends AvgFunction
    Some databases will use the same type for the return value as the argument, which can be an issue when averaging on integral types since it will drop the decimals. This class will convert the arg to a "CAST({arg} AS double)"