Class DB2FormatEmulation

  • All Implemented Interfaces:
    FunctionRenderingSupport, SqmFunctionDescriptor

    public class DB2FormatEmulation
    extends FormatFunction
    DB2's varchar_format() can't handle quoted literal strings in the format pattern. So just split the pattern into bits, call varcharformat() on the odd-numbered bits, and concatenate all the nonempty bits at the end.