(Context<?> ctx)
| 147 | |
| 148 | |
| 149 | @Override |
| 150 | public final void accept(Context<?> ctx) { |
| 151 | int max = Tools.maxParameterCount(ctx); |
| 152 | |
| 153 | // [#19335] Work around PostgreSQL's 100 function arguments limit |
| 154 | if (entries.size() > max / 2) { |
| 155 | List<QOM.JSONObject<T>> r = new ArrayList<>(); |
| 156 | |
| 157 | for (List<? extends JSONEntry<?>> chunk : chunks(entries, max / 2)) |
| 158 | r.add($arg2(QOM.unmodifiable(chunk))); |
| 159 | |
| 160 | if (getDataType().getFromType() == JSON.class) |
| 161 | ctx.visit(new JSONConcat<>(r, getDataType()).cast(JSON)); |
| 162 | else |
| 163 | ctx.visit(new JSONConcat<>(r, getDataType())); |
| 164 | } |
| 165 | else |
| 166 | accept0(ctx); |
| 167 | } |
| 168 | |
| 169 | final void accept0(Context<?> ctx) { |
| 170 | switch (ctx.family()) { |
nothing calls this directly
no test coverage detected