| От | Tom Lane |
|---|---|
| Тема | Re: PQprintf |
| Дата | |
| Msg-id | 28291.1014996313@sss.pgh.pa.us обсуждение |
| Ответ на | PQprintf (Adam Siegel <adam@sycamorehq.com>) |
| Список | pgsql-hackers |
Adam Siegel <adam@sycamorehq.com> writes:
> I have developed a function to help me with escaping strings more easily.
> It kind of behaves like printf and is very crude. Before I do anymore
> work, I was hoping to get some comments or notice if someone has already
> done this.
Seems like the start of a good idea, though I agree it's crude yet.
One thing you definitely need is more control over %f (precision
arguments).
One suggestion: use libpq's "pqexpbuffer.h" routines to manipulate the
expansible string buffer, instead of reinventing that wheel yet again.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера