(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 (fields.size() > max) { |
| 155 | List<QOM.JSONArray<T>> r = new ArrayList<>(); |
| 156 | |
| 157 | for (List<? extends Field<?>> chunk : chunks(fields, max)) |
| 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 | QueryPartCollectionView<Field<?>> mapped = QueryPartCollectionView.wrap((Collection<Field<?>>) fields).map(JSONEntryImpl.jsonCastMapper(ctx)); |
nothing calls this directly
no test coverage detected