Skip to content

Commit b67f1ce

Browse files
committed
Reduce json <=> jsonb casts from explicit-only to assignment level.
There's no reason to make users write an explicit cast to store a json value in a jsonb column or vice versa. We could probably even make these implicit, but that might open us up to problems with ambiguous function calls, so for now just do this.
1 parent e5f3690 commit b67f1ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 201503011
56+
#define CATALOG_VERSION_NO 201503031
5757

5858
#endif

src/include/catalog/pg_cast.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ DATA(insert ( 1562 1562 1687 i f ));
360360
DATA(insert ( 1700 1700 1703 i f ));
361361

362362
/* json to/from jsonb */
363-
DATA(insert ( 114 3802 0 e i ));
364-
DATA(insert ( 3802 114 0 e i ));
363+
DATA(insert ( 114 3802 0 a i ));
364+
DATA(insert ( 3802 114 0 a i ));
365365

366366
#endif /* PG_CAST_H */

0 commit comments

Comments
 (0)