(Context<?> ctx)
| 167 | } |
| 168 | |
| 169 | final void accept0(Context<?> ctx) { |
| 170 | switch (ctx.family()) { |
| 171 | |
| 172 | |
| 173 | case POSTGRES: |
| 174 | case YUGABYTEDB: |
| 175 | if (onNull == JSONOnNull.ABSENT_ON_NULL) |
| 176 | ctx.visit(getDataType().getType() == JSONB.class ? N_JSONB_STRIP_NULLS : N_JSON_STRIP_NULLS).sql('('); |
| 177 | |
| 178 | ctx.visit(getDataType().getType() == JSONB.class ? N_JSONB_BUILD_OBJECT : N_JSON_BUILD_OBJECT).sql('(').visit(QueryPartCollectionView.wrap(entries)).sql(')'); |
| 179 | |
| 180 | if (onNull == JSONOnNull.ABSENT_ON_NULL) |
| 181 | ctx.sql(')'); |
| 182 | |
| 183 | break; |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 |
no test coverage detected