Re: libpq and escaping array string literals

From: Dmitry Igrishin <dmitigr(at)gmail(dot)com>
To: Ted Toth <txtoth(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: libpq and escaping array string literals
Date: 2020-03-06 19:40:42
Message-ID: CAAfz9KOzPNnFRniFbZ+4-0vnU0aXGQp0VHhtYzoe0BksfBRL3A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tiffany Thang 2020-03-06 23:28:08 Restrict user to create only one db with a specific name
Previous Message Ted Toth 2020-03-06 19:11:32 libpq and escaping array string literals