Fix text_position to not scan past end of source string in multibyte
authorJoe Conway <[email protected]>
Sun, 1 Feb 2004 04:05:13 +0000 (04:05 +0000)
committerJoe Conway <[email protected]>
Sun, 1 Feb 2004 04:05:13 +0000 (04:05 +0000)
commit8a895958d528c8d40ffcf633286affaf23cdda9f
tree8423a585bc13771a174e9c6c0db183e6d8d1fef8
parent5015fec0f6daad5ec821f1af9b91f6491a6844f1
Fix text_position to not scan past end of source string in multibyte
case, per report from Korea PostgreSQL Users' Group. Copied from Tom
Lane's 7.4 branch patch.
src/backend/utils/adt/varlena.c