public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Igor Korot <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Error on the query
Date: Tue, 4 Mar 2025 10:36:07 -0700
Message-ID: <CAKFQuwbL6N36HihZ-Yx+=rWyV_mv9J6X6Uej+nfnmAT74v-dZg@mail.gmail.com> (raw)
In-Reply-To: <CA+FnnTxq1e5wRjjO2VDfikkn0Stq6W8qFFykE9iJskSz=2+7Ug@mail.gmail.com>
References: <CA+FnnTxq1e5wRjjO2VDfikkn0Stq6W8qFFykE9iJskSz=2+7Ug@mail.gmail.com>

On Tuesday, March 4, 2025, Igor Korot <[email protected]> wrote:
>
> [code]
>         queries.push_back( L"DO $$ BEGIN IF NOT EXISTS( SELECT 1 FROM
> pg_class c, pg_namespace n WHERE n.oid = c.relnamespace AND c.relname
> = \'abcatc_x\' AND n.nspname = \'public\' ) THEN CREATE UNIQUE INDEX
> \"abcatc_x\" ON \"abcatcol\"(\"abc_tnam\" ASC, \"abc_ownr\" ASC,
> \"abc_cnam\" ASC); END IF; END;" );
> [/code]
>
> What am I missing?
>

“ ERROR:  unterminated dollar-quoted string at or near‘

The terminator for your dollar-quoted string.

David J.


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Error on the query
  In-Reply-To: <CAKFQuwbL6N36HihZ-Yx+=rWyV_mv9J6X6Uej+nfnmAT74v-dZg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox