Re: libpq and escaping array string literals

Поиск
Список
Период
Сортировка
От Dmitry Igrishin
Тема Re: libpq and escaping array string literals
Дата
Msg-id CAAfz9KOzPNnFRniFbZ+4-0vnU0aXGQp0VHhtYzoe0BksfBRL3A@mail.gmail.com
обсуждение исходный текст
Ответ на libpq and escaping array string literals  (Ted Toth <txtoth@gmail.com>)
Список pgsql-general
Hey Ted,

libpq has no such a facility. If you're on C++ you may want to use Pgfe library to work with the database arrays easy.

On Fri, 6 Mar 2020, 22:11 Ted Toth, <txtoth@gmail.com> wrote:
I've got so C code that interacting with a table containing a field of type text[]. Strings I've got to put in the array may be unicode and or contain single or double quotes etc ... What's the best way to escape these strings? 

Ted

В списке pgsql-general по дате отправления:

Предыдущее
От: Ted Toth
Дата:
Сообщение: libpq and escaping array string literals
Следующее
От: Tiffany Thang
Дата:
Сообщение: Restrict user to create only one db with a specific name