pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
 BUG #16286: Некорректно работает функция lower
2+ messages / 2 participants
[nested] [flat]

*  BUG #16286: Некорректно работает функция lower
@ 2020-03-03 13:09  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2020-03-03 13:09 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: lyutovmax@gmail.com

The following bug has been logged on the website:

Bug reference:      16286
Logged by:          Макс Лютов
Email address:      lyutovmax@gmail.com
PostgreSQL version: 12.2
Operating system:   Ubuntu 18.04.4 LTS
Description:        

Запрос select lower(convert_from(convert_to('ТеСт', 'UTF8'), 'UTF8'))
возвращает 'ТеСт' , а не 'тест'



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #16286: Некорректно работает функция lower
@ 2020-03-03 14:34  Tom Lane <tgl@sss.pgh.pa.us>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-03-03 14:34 UTC (permalink / raw)
  To: lyutovmax@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org

PG Bug reporting form <noreply@postgresql.org> writes:
> Запрос select lower(convert_from(convert_to('ТеСт', 'UTF8'), 'UTF8'))
> возвращает 'ТеСт' , а не 'тест'

I don't speak Russian, but try it like this:

ru=# select lower(convert_from(convert_to('ТеСт', 'UTF8'), 'UTF8' collate "default"));
 lower 
-------
 тест
(1 row)

Without that, the collation of the expression works out as "C" because
convert_from's second argument is of type "name", which since v12
has default collation "C".  Then lower() won't do anything with
non-ASCII letters.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-03-03 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 13:09  BUG #16286: Некорректно работает функция lower PG Bug reporting form <noreply@postgresql.org>
2020-03-03 14:34 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox