File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -4456,7 +4456,7 @@ transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func)
44564456 if (jsexpr -> returning -> typid != JSONBOID )
44574457 ereport (ERROR ,
44584458 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
4459- errmsg ("JSON_TABLE() is not yet implemented for json type" ),
4459+ errmsg ("JSON_TABLE() is not yet implemented for the json type" ),
44604460 errhint ("Try casting the argument to jsonb" ),
44614461 parser_errposition (pstate , func -> location )));
44624462
@@ -4466,7 +4466,8 @@ transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func)
44664466 if (exprType (contextItemExpr ) != JSONBOID )
44674467 ereport (ERROR ,
44684468 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
4469- errmsg ("%s() is not yet implemented for json type" , func_name ),
4469+ errmsg ("%s() is not yet implemented for the json type" , func_name ),
4470+ errhint ("Try casting the argument to jsonb" ),
44704471 parser_errposition (pstate , func -> location )));
44714472
44724473 return (Node * ) jsexpr ;
Original file line number Diff line number Diff line change 11-- JSON_EXISTS
22SELECT JSON_EXISTS(NULL FORMAT JSON, '$');
3- ERROR: JSON_EXISTS() is not yet implemented for json type
3+ ERROR: JSON_EXISTS() is not yet implemented for the json type
44LINE 1: SELECT JSON_EXISTS(NULL FORMAT JSON, '$');
55 ^
6+ HINT: Try casting the argument to jsonb
67-- JSON_VALUE
78SELECT JSON_VALUE(NULL FORMAT JSON, '$');
8- ERROR: JSON_VALUE() is not yet implemented for json type
9+ ERROR: JSON_VALUE() is not yet implemented for the json type
910LINE 1: SELECT JSON_VALUE(NULL FORMAT JSON, '$');
1011 ^
12+ HINT: Try casting the argument to jsonb
1113-- JSON_QUERY
1214SELECT JSON_QUERY(NULL FORMAT JSON, '$');
13- ERROR: JSON_QUERY() is not yet implemented for json type
15+ ERROR: JSON_QUERY() is not yet implemented for the json type
1416LINE 1: SELECT JSON_QUERY(NULL FORMAT JSON, '$');
1517 ^
18+ HINT: Try casting the argument to jsonb
1619-- JSON_TABLE
1720SELECT * FROM JSON_TABLE(NULL FORMAT JSON, '$' COLUMNS (foo text));
18- ERROR: JSON_TABLE() is not yet implemented for json type
21+ ERROR: JSON_TABLE() is not yet implemented for the json type
1922LINE 1: SELECT * FROM JSON_TABLE(NULL FORMAT JSON, '$' COLUMNS (foo ...
2023 ^
2124HINT: Try casting the argument to jsonb
You can’t perform that action at this time.
0 commit comments