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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy