mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
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.
This commit is contained in:
parent
e5f3690249
commit
b67f1ce181
@ -53,6 +53,6 @@
|
||||
*/
|
||||
|
||||
/* yyyymmddN */
|
||||
#define CATALOG_VERSION_NO 201503011
|
||||
#define CATALOG_VERSION_NO 201503031
|
||||
|
||||
#endif
|
||||
|
@ -360,7 +360,7 @@ DATA(insert ( 1562 1562 1687 i f ));
|
||||
DATA(insert ( 1700 1700 1703 i f ));
|
||||
|
||||
/* json to/from jsonb */
|
||||
DATA(insert ( 114 3802 0 e i ));
|
||||
DATA(insert ( 3802 114 0 e i ));
|
||||
DATA(insert ( 114 3802 0 a i ));
|
||||
DATA(insert ( 3802 114 0 a i ));
|
||||
|
||||
#endif /* PG_CAST_H */
|
||||
|
Loading…
Reference in New Issue
Block a user