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

From: Marc Balmer <marc(at)msys(dot)ch>
To: Jan-Peter(dot)Seifert(at)gmx(dot)de
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error
Date: 2013-01-22 13:47:41
Message-ID: 342D272E-D844-4ABD-9C23-637626B62E7A@msys.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Am 22.01.2013 um 14:31 schrieb Jan-Peter(dot)Seifert(at)gmx(dot)de:

> The following bug has been logged on the website:
>
> Bug reference: 7820
> Logged by: Jan-Peter Seifert
> Email address: Jan-Peter(dot)Seifert(at)gmx(dot)de
> PostgreSQL version: 9.1.7
> Operating system: Windows 7 64-bit
> Description:
>
> 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.

no. Your syntax is wrong.

>
> I had to replace the hyphen in file names and in the scripts to make the
> module work.
>

That is the wrong "fix". The hyphen has a meaning in SQL. So you need to properly enclose uuid-ossp in quotes.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message alessandro 2013-01-22 16:18:46 BUG #7821: constant disconnection with external network
Previous Message Vik Reykja 2013-01-22 13:38:07 Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error