@@ -728,7 +728,7 @@ json_lex_string(JsonLexContext *lex)
728
728
ereport (ERROR ,
729
729
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
730
730
errmsg ("invalid input syntax for type json" ),
731
- errdetail ("highorder surrogate must not follow a high order surrogate." ),
731
+ errdetail ("Unicode high surrogate must not follow a high surrogate." ),
732
732
report_json_context (lex )));
733
733
hi_surrogate = (ch & 0x3ff ) <<10 ;
734
734
continue ;
@@ -739,7 +739,7 @@ json_lex_string(JsonLexContext *lex)
739
739
ereport (ERROR ,
740
740
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
741
741
errmsg ("invalid input syntax for type json" ),
742
- errdetail ("loworder surrogate must follow a high order surrogate." ),
742
+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
743
743
report_json_context (lex )));
744
744
ch = 0x10000 + hi_surrogate + (ch & 0x3ff );
745
745
hi_surrogate = -1 ;
@@ -749,7 +749,7 @@ json_lex_string(JsonLexContext *lex)
749
749
ereport (ERROR ,
750
750
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
751
751
errmsg ("invalid input syntax for type json" ),
752
- errdetail ("loworder surrogate must follow a high order surrogate." ),
752
+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
753
753
report_json_context (lex )));
754
754
755
755
/*
@@ -783,7 +783,7 @@ json_lex_string(JsonLexContext *lex)
783
783
ereport (ERROR ,
784
784
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
785
785
errmsg ("invalid input syntax for type json" ),
786
- errdetail ("Unicode escape for codepoints higher than U+ 007Fnot permitted in non-UTF8 encoding" ),
786
+ errdetail ("Unicode escapevalues cannot be used for codepoint values above 007Fwhen the server encoding is not UTF8. " ),
787
787
report_json_context (lex )));
788
788
}
789
789
@@ -795,7 +795,7 @@ json_lex_string(JsonLexContext *lex)
795
795
ereport (ERROR ,
796
796
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
797
797
errmsg ("invalid input syntax for type json" ),
798
- errdetail ("loworder surrogate must follow a high order surrogate." ),
798
+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
799
799
report_json_context (lex )));
800
800
801
801
switch (* s )
@@ -856,7 +856,7 @@ json_lex_string(JsonLexContext *lex)
856
856
ereport (ERROR ,
857
857
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
858
858
errmsg ("invalid input syntax for type json" ),
859
- errdetail ("loworder surrogate must follow a high order surrogate." ),
859
+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
860
860
report_json_context (lex )));
861
861
862
862
appendStringInfoChar (lex -> strval ,* s );
@@ -868,7 +868,7 @@ json_lex_string(JsonLexContext *lex)
868
868
ereport (ERROR ,
869
869
(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
870
870
errmsg ("invalid input syntax for type json" ),
871
- errdetail ("loworder surrogate must follow a high order surrogate." ),
871
+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
872
872
report_json_context (lex )));
873
873
874
874
/* Hooray, we found the end of the string! */