Re: [pgadmin-support] syntax error for no apparent reason

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: [pgadmin-support] syntax error for no apparent reason
Дата
Msg-id 4CF99D40.90306@agliodbs.com
обсуждение исходный текст
Ответ на syntax error for no apparent reason  (Willy-Bas Loos <willybas@gmail.com>)
Ответы Re: [pgadmin-support] syntax error for no apparent reason
Список pgsql-admin
> I've encountered this before, psql gives me a syntax error for no clear
> reason. It's allways on the first character of a sql file.
> I think that there must be some strange character code at the first
> position, maybe it is because i share a ntfs partition with the windows
> installation on my laptop and move files around.

Yeah, this is caused by pgadmin adding a unicode marker at the first
position of the file.  If you uncheck "Read and Write Unicode UTF-8
Files" in the preferences, this issue should go away.


--
                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.
                                     http://www.pgexperts.com

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

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: syntax error for no apparent reason
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: [pgadmin-support] syntax error for no apparent reason