escape.removeAll(WhitespacePiece.class, false);
checkSize(escape, 3);
UnquotedIdentifierPiece name = getNode(escape, 1, UnquotedIdentifierPiece.class);
List<Node> args = split(getNode(escape, 2, ParenGroupNode.class), false, ",");
Method method = getEscapeMethod(name.toString());
if (method == null) {
throw new SQLException("Escape function not supported (" + escape.getStartPos() + "): " + name, "Syntax Error");
}
return invokeEscape(method, name.toString(), args);
}