Re: Database name with semicolon

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: "joby(dot)john(at)nccgroup(dot)trust" <Joby(dot)John(at)nccgroup(dot)trust>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Database name with semicolon
Date: 2018-06-28 15:48:56
Message-ID: CAFj8pRAXbJ5rkVH3Aj4yJ=fK3hy4zdJaRsanvGvi0PtDQfCQqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2018-06-28 12:10 GMT+02:00 joby(dot)john(at)nccgroup(dot)trust <
Joby(dot)John(at)nccgroup(dot)trust>:

> > See if something like below works:
> > {db; name}
>
>
>
> Hi,
>
> Thanks for the responses.
>
> I tried putting curly brackets around the value of database like you
> mentioned.
> {db; name}
> But the server was treating the brackets as part of the database name and
> so
> did not work.
> I tried double quotes like
> "db; name" which also didn't work.
>

please, can you try

'"db; name"' .. double quotes nested in apostrophes

> Not sure what else I can try or whether the ODBC driver supports database
> name with a semicolon at all.
> I know that in the case of password we can put the string enclosed within
> curly brackets to escape special characters but not appears to be working
> for the database.
>
> Regards,
> Joby
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-
> f1843780.html
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message joby.john@nccgroup.trust 2018-06-28 16:22:46 Re: Database name with semicolon
Previous Message Andres Freund 2018-06-28 15:02:10 Re: could not read block 0 in file : read only 0 of 8192 bytes when doing nasty on immutable index function