pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joby John <Joby.John@nccgroup.trust>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: EXTERNAL: Re: Database name with semicolon
Date: Wed, 27 Jun 2018 14:39:32 +0000
Message-ID: <0bd653e73c51493098da7621b28a958a@MANDBSEXCH03.nccgroup.local> (raw)
In-Reply-To: <CAFj8pRCTJUeRGRmRCTe-wTWpw20UHyEaTT0PcAJzM60HGz--Kw@mail.gmail.com>
References: <2b0a3c93173a4bef8117c897bcca6957@MANDBSEXCH03.nccgroup.local>
	<CAFj8pRCTJUeRGRmRCTe-wTWpw20UHyEaTT0PcAJzM60HGz--Kw@mail.gmail.com>

Hi Pavel,

Thanks for coming back to me.

The version of the Postgres server where I am trying is: 9.5.3
Yes, I tried putting the database name in double quotes with no luck.
Please note we are using PostgreSQL Unicode ODBC driver (version 10.2) to communicate with the server.

Regards,
Joby John

From: Pavel Stehule [mailto:pavel.stehule@gmail.com]
Sent: 27 June 2018 15:26
To: Joby John <Joby.John@nccgroup.trust>
Cc: pgsql-general@postgresql.org
Subject: EXTERNAL: Re: Database name with semicolon

Hi

2018-06-27 15:22 GMT+02:00 Joby John <Joby.John@nccgroup.trust<mailto:Joby.John@nccgroup.trust>>:
Hi,

We have a windows application which communicate to Postgres database via PostgreSQL ODBC drivers for windows.
One of our customers has a database with semicolon in its name (e.g.: “db; name”) and our application is failing to establish connection to that database saying like it could not find the database.
We tried all known possibilities by enclosing the DB name under quotes, curly brackets etc. but none solved the problem.

I wonder whether there is any possible way to achieve connection to such database. If not, probably it’s better not to support semicolons within the database name.
Not sure whether I need to submit this query as a bug or not. Any help is much appreciated.

modern Postgresql has not any problems with special chars

postgres=# create database "bad name ;;;;";
CREATE DATABASE
postgres=# \q
[pavel@nemesis ~]$ psql 'bad name ;;;;'
psql (11beta1)
Type "help" for help.

bad name ;;;;=#

What is version of Postgres?

Did you try double quotes?

Regards

Pavel



Thanks and Regards,
Joby John
________________________________
Joby John
Software Developer
NCC Group
Kings Court, Kingston Road, Leatherhead, KT22 7SL

Telephone: +44 1372 383 800<tel:+44%201372%20383%20800>
Mobile:
Website: www.nccgroup.trust<http://www.nccgroup.trust;
Twitter: @NCCGroupplc<https://twitter.com/NCCGroupplc;

[https://www.nccgroup.trust/static/img/emaillogo/ncc-group-logo.png]<http://www.nccgroup.trust/;

________________________________

This email is sent for and on behalf of NCC Group. NCC Group is the trading name of NCC Services Limited (Registered in England CRN: 2802141). The ultimate holding company is NCC Group plc (Registered in England CRN: 4627044). This email may be confidential and/or legally privileged.

________________________________
Joby John
Software Developer
NCC Group
Kings Court, Kingston Road, Leatherhead, KT22 7SL

Telephone: +44 1372 383 800<tel:+44%201372%20383%20800>
Mobile: <tel:>
Website: www.nccgroup.trust<http://www.nccgroup.trust;
Twitter: @NCCGroupplc<https://twitter.com/NCCGroupplc;
        [https://www.nccgroup.trust/static/img/emaillogo/ncc-group-logo.png]  <http://www.nccgroup.trust/;
________________________________

This email is sent for and on behalf of NCC Group. NCC Group is the trading name of NCC Services Limited (Registered in England CRN: 2802141). The ultimate holding company is NCC Group plc (Registered in England CRN: 4627044). This email may be confidential and/or legally privileged.


view thread (2+ messages)  latest in thread

Message-ID: <0bd653e73c51493098da7621b28a958a@MANDBSEXCH03.nccgroup.local>
Permalink:  ../0bd653e73c51493098da7621b28a958a@MANDBSEXCH03.nccgroup.local/
Also on:    postgresql.org/message-id/0bd653e73c51493098da7621b28a958a@MANDBSEXCH03.nccgroup.local

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Joby.John@nccgroup.trust, pavel.stehule@gmail.com
  Subject: Re: EXTERNAL: Re: Database name with semicolon
  In-Reply-To: <0bd653e73c51493098da7621b28a958a@MANDBSEXCH03.nccgroup.local>
  References: <2b0a3c93173a4bef8117c897bcca6957@MANDBSEXCH03.nccgroup.local> <CAFj8pRCTJUeRGRmRCTe-wTWpw20UHyEaTT0PcAJzM60HGz--Kw@mail.gmail.com> <0bd653e73c51493098da7621b28a958a@MANDBSEXCH03.nccgroup.local>

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

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