| От | Magnus Hagander |
|---|---|
| Тема | Re: BUG #4337: psql -c case insensitive |
| Дата | |
| Msg-id | 48931D68.8030406@hagander.net обсуждение исходный текст |
| Ответ на | Re: BUG #4337: psql -c case insensitive (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-bugs |
Tom Lane wrote: > "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. Most likely you're bit by the completely insane rules of quoting in the windows commandshell. See for example the comments around it in src/port.h in the PostgreSQL distribution. //Magnus
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера