Re: PQprintf

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: Bug #605: timestamp(timestamp('a timestamp)) no longer works
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: keyword (or fulltext) indexes, any planned developments?