@@ -431,7 +431,7 @@ json_lex_string(JsonLexContext *lex)
431431 ereport (ERROR ,
432432 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
433433 errmsg ("invalid input syntax for type json" ),
434- errdetail_internal ("line %d: Character with value \"0x%02x\" must be escaped." ,
434+ errdetail ("line %d: Character with value \"0x%02x\" must be escaped." ,
435435 lex -> line_number , (unsigned char ) * s )));
436436 }
437437 else if (* s == '\\' )
@@ -466,7 +466,7 @@ json_lex_string(JsonLexContext *lex)
466466 ereport (ERROR ,
467467 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
468468 errmsg ("invalid input syntax for type json" ),
469- errdetail_internal ("line %d: \"\\u\" must be followed by four hexadecimal digits." ,
469+ errdetail ("line %d: \"\\u\" must be followed by four hexadecimal digits." ,
470470 lex -> line_number )));
471471 }
472472 }
@@ -480,7 +480,7 @@ json_lex_string(JsonLexContext *lex)
480480 ereport (ERROR ,
481481 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
482482 errmsg ("invalid input syntax for type json" ),
483- errdetail_internal ("line %d: Invalid escape \"\\%s\"." ,
483+ errdetail ("line %d: Invalid escape \"\\%s\"." ,
484484 lex -> line_number , extract_mb_char (s ))));
485485 }
486486 }
@@ -595,7 +595,7 @@ report_parse_error(JsonParseStack *stack, JsonLexContext *lex)
595595 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
596596 errmsg ("invalid input syntax for type json: \"%s\"" ,
597597 lex -> input ),
598- errdetail_internal ("The input string ended unexpectedly." )));
598+ errdetail ("The input string ended unexpectedly." )));
599599
600600 /* Work out the offending token. */
601601 toklen = lex -> token_terminator - lex -> token_start ;
@@ -638,7 +638,7 @@ report_parse_error(JsonParseStack *stack, JsonLexContext *lex)
638638 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
639639 errmsg ("invalid input syntax for type json: \"%s\"" ,
640640 lex -> input ),
641- detail ? errdetail_internal (detail , lex -> line_number , token ) : 0 ));
641+ detail ? errdetail (detail , lex -> line_number , token ) : 0 ));
642642}
643643
644644/*
@@ -658,7 +658,7 @@ report_invalid_token(JsonLexContext *lex)
658658 ereport (ERROR ,
659659 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
660660 errmsg ("invalid input syntax for type json" ),
661- errdetail_internal ("line %d: Token \"%s\" is invalid." ,
661+ errdetail ("line %d: Token \"%s\" is invalid." ,
662662 lex -> line_number , token )));
663663}
664664
0 commit comments