Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error

Поиск
Список
Период
Сортировка
От Vik Reykja
Тема Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error
Дата
Msg-id CALDgxVuHYy41PqWhOgts6iDE+XSvWb5pAsTstKPHP-E92exO-A@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error  (Jan-Peter.Seifert@gmx.de)
Список pgsql-bugs
On Tue, Jan 22, 2013 at 2:31 PM, <Jan-Peter.Seifert@gmx.de> wrote:

> The statement:
> 'CREATE EXTENSION uuid-ossp'
>
> just gives me a syntax error:
>
> ERROR:  syntax error at or near "-"
> LINE 1: CREATE EXTENSION uuid-ossp
>                              ^
> ********** Fehler **********
>
> ERROR: syntax error at or near "-"
> SQL Status:42601
> Zeichen:22
>
> Obviously "CREATE EXTENSION" expects underscores instead of hyphens.
>
> I had to replace the hyphen in file names and in the scripts to make the
> module work.
>

This is not a bug.  You need to quote identifiers that have non-identifier
characters in them, like so:

CREATE EXTENSION "uuid-ossp";

Vik

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error
Следующее
От: Marc Balmer
Дата:
Сообщение: Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error