pgsql: unicode_case.c: change API to signal UTF8 decoding error.
pgsql: unicode_case.c: change API to signal UTF8 decoding error.
От:
Jeff Davis <jdavis@postgresql.org>
Дата:
unicode_case.c: change API to signal UTF8 decoding error. Errors at this point are not expected, but if encountered, signal to the caller so it can raise the appropriate error. Reviewed-by: Chao Li Reviewed-by: Ayush Tiwari Discussion: https://postgr.es/m/c355354e6c3f4a7aafb047361b73db247260fca0.camel@j-davis.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/07211f64ace0150c92a00769a1cfe8b9305b9e78 Modified Files -------------- src/backend/utils/adt/pg_locale_builtin.c | 50 +++++++++++++++++++++++++------ src/common/unicode/case_test.c | 37 ++++++++++++++--------- src/common/unicode_case.c | 46 +++++++++++++++------------- src/include/common/unicode_case.h | 8 ++--- 4 files changed, 94 insertions(+), 47 deletions(-)