Re: BUG #4337: psql -c case insensitive - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4337: psql -c case insensitive
Date
Msg-id 10110.1217522256@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4337: psql -c case insensitive  ("none" <nomind@mailinator.com>)
Responses Re: BUG #4337: psql -c case insensitive
List pgsql-bugs
"none" <nomind@mailinator.com> writes:
> I'm programming an application that uses psql (...) -c "ALTER DATABASE
> \"MyBase\" RENAME TO \"MyBase2\" and it doesn't work because it looks for a
> "mybase" database name.

Works for me.  I speculate that your scripting language is losing the
embedded double-quotes somewhere before psql gets them.  I don't know
much about Windows scripting so it's hard to say more than that; but
an extra interpretation pass over the command string would probably
cause such a problem.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "none"
Date:
Subject: BUG #4337: psql -c case insensitive
Next
From: Magnus Hagander
Date:
Subject: Re: BUG #4337: psql -c case insensitive