Re: BUG #4337: psql -c case insensitive

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "none" <nomind(at)mailinator(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4337: psql -c case insensitive
Date: 2008-07-31 16:37:36
Message-ID: 10110.1217522256@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"none" <nomind(at)mailinator(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2008-08-01 14:27:52 Re: BUG #4337: psql -c case insensitive
Previous Message none 2008-07-31 16:16:23 BUG #4337: psql -c case insensitive