bug with psql 8.3.3 on ubuntu

Поиск
Список
Период
Сортировка
От Viraj Kanwade
Тема bug with psql 8.3.3 on ubuntu
Дата
Msg-id 4900AA6A.5020605@gslab.com
обсуждение исходный текст
Ответы Re: bug with psql 8.3.3 on ubuntu  (toruvinn <toruvinn@lain.pl>)
Список pgsql-bugs
Hi,

I have a table which has capital characters in it.

I am running the command

psql -d mydb -U usr -t -c " select val1 from ""MyTable"" where val2 =
'abc' "
OR
psql -d mydb -U usr -t -c ' select val1 from "MyTable" where val2 =
''abc'' '

Both work fine on my windows machine.

But when I try to run these commands on Ubuntu, I get the escaped (")/
(') are ignored.

The command it is interpreting is

psql -d mydb -U usr -t -c " select val1 from MyTable where val2 = 'abc' "
OR
psql -d mydb -U usr -t -c ' select val1 from "MyTable" where val2 = abc '

Hence, it wont work for me.

Why is this different behavior?

Please let me know what I should be doing to make it work on Ubuntu.

Thanks.
Regards,
Viraj

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Jeff Frost"
Дата:
Сообщение: BUG #4491: regression in gist indexes
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: ftp server symlink