Re: Error in pgaccess (parse error at or near """) on create new user with password

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error in pgaccess (parse error at or near """) on create new user with password
Дата
Msg-id 11627.957880860@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Error in pgaccess (parse error at or near """) on create new user with password  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Ответы Re: Error in pgaccess (parse error at or near """) on create new user with password  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Peter Eisentraut <e99re41@DoCS.UU.SE> writes:
> On Tue, 9 May 2000, Thomas Swan wrote:
>> CREATE user "whomever" WITH PASSWORD "foo" CREATEDB CREATEUSER
>>
>> ERROR: parser: parse error at or near """

> The password must be single-quoted nowadays. Put that on the 7.0.1 list

I'd say single quotes is correct behavior for the password, actually.
Double quotes are only appropriate in a position where an SQL name is
wanted.  The underlying syntax is really
    CREATE USER <name> WITH PASSWORD <string>

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Error in pgaccess (parse error at or near """) on create new user with password
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Cluster fails