Fix more multibyte issues in ltree

Started by Jeff Davis24 days ago1 messages
Jump to latest
#1Jeff Davis
pgsql@j-davis.com

Commit 84d5efa7e3 missed some multibyte issues caused by short-circuit
logic in the callers.

Repro:

-- should return true, returns false
SELECT 'sss'::ltree ~ 'ſſ*@'::lquery;

Patches attached; backport to 14 like 84d5efa7e3.

Regards,
Jeff Davis

Attachments:

v19.1-0001-Fix-more-multibyte-issues-in-ltree.patchtext/x-patch; charset=UTF-8; name=v19.1-0001-Fix-more-multibyte-issues-in-ltree.patchDownload+60-65
v18.1-0001-Fix-more-multibyte-issues-in-ltree.patchtext/x-patch; charset=UTF-8; name=v18.1-0001-Fix-more-multibyte-issues-in-ltree.patchDownload+63-70
v17.1-0001-Fix-more-multibyte-issues-in-ltree.patchtext/x-patch; charset=UTF-8; name=v17.1-0001-Fix-more-multibyte-issues-in-ltree.patchDownload+43-44
v16.1-0001-Fix-more-multibyte-issues-in-ltree.patchtext/x-patch; charset=UTF-8; name=v16.1-0001-Fix-more-multibyte-issues-in-ltree.patchDownload+43-44
v15.1-0001-Fix-more-multibyte-issues-in-ltree.patchtext/x-patch; charset=UTF-8; name=v15.1-0001-Fix-more-multibyte-issues-in-ltree.patchDownload+43-44
v14.1-0001-Fix-more-multibyte-issues-in-ltree.patchtext/x-patch; charset=UTF-8; name=v14.1-0001-Fix-more-multibyte-issues-in-ltree.patchDownload+43-44