pgsql: SQL/JSON: Rethink c2d93c3802b

2024-07-17 Thread Amit Langote
SQL/JSON: Rethink c2d93c3802b This essentially reverts c2d93c3802b except tests. The problem with c2d93c3802b was that it only changed the casting behavior for types with typmod, and had coding issues noted in the post-commit review. This commit changes coerceJsonFuncExpr() to use assignment-leve

pgsql: SQL/JSON: Rethink c2d93c3802b

2024-07-17 Thread Amit Langote
SQL/JSON: Rethink c2d93c3802b This essentially reverts c2d93c3802b except tests. The problem with c2d93c3802b was that it only changed the casting behavior for types with typmod, and had coding issues noted in the post-commit review. This commit changes coerceJsonFuncExpr() to use assignment-leve