| От | Dagfinn Ilmari Mannsåker |
|---|---|
| Тема | Re: Psql meta-command conninfo+ |
| Дата | |
| Msg-id | 87mse828bv.fsf@wibble.ilmari.org обсуждение исходный текст |
| Ответ на | Re: Psql meta-command conninfo+ (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@alvh.no-ip.org> writes: > On 2025-Feb-22, Alvaro Herrera wrote: > >> Also, there's a bunch of "(char *)" casts that are 100% due to >> printTableAddCell() taking a char * instead of const char * for the cell >> value. That seems a bit silly, we should change that. > > Ah, but the problem is that most of the input cells there come from > PQgetValue which returns a char *, so we'd need different casts > elsewhere. Nevermind this ... Also, it calls mbvalidate(cell, ...), which can modify the contents (stripping out invalid characters), so we'd better hope all the possible PQsslAttribute() values are valid UTF-8 or we've got possible UB on our hands. - ilmari
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера