]> granicus.if.org Git - postgresql/commit
Don't downcase non-ascii identifier chars in multi-byte encodings.
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 8 Jun 2013 14:21:17 +0000 (10:21 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 8 Jun 2013 14:21:17 +0000 (10:21 -0400)
commit160f2cb4ec56251751bf778af8a9d579befb0059
treeda31e9034ffaf9ff3e066734089b32464d4c4db5
parent54f68364e4992c6335fbca1fb83c1be8947c3c31
Don't downcase non-ascii identifier chars in multi-byte encodings.

Long-standing code has called tolower() on identifier character bytes
with the high bit set. This is clearly an error and produces junk output
when the encoding is multi-byte. This patch therefore restricts this
activity to cases where there is a character with the high bit set AND
the encoding is single-byte.

There have been numerous gripes about this, most recently from Martin
Schäfer.

Backpatch to all live releases.
src/backend/parser/scansup.c