Re: Changing user

Поиск
Список
Период
Сортировка
От C G
Тема Re: Changing user
Дата
Msg-id Law12-F85UelSWeVyVY00043f44@hotmail.com
обсуждение исходный текст
Ответ на Changing user  ("C G" <csgcsg39@hotmail.com>)
Ответы Re: Changing user
Список pgsql-general
Thanks for your help but I still have a small problem. I'm try to do as you
suggested and use prepare/execute but I'm doing something silly.

I'm using:

PREPARE my_prep1(name) AS SET SESSION AUTHORIZATION $1;

and get the error message:
ERROR: syntax error at or near "set" at character 27

I have tried many variations on this theme but have no luck. Suggestions?

Thanks

Colin




>"C G" <csgcsg39@hotmail.com> writes:
> > SET SESSION AUTHORIZATION username;
> > ERROR: syntax error at or near "$1" at character 28
>
>You'll need to use EXECUTE to do this.  Utility statements in general
>aren't prepared to deal with parameters.
>
>            regards, tom lane

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger


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

Предыдущее
От: Rory Campbell-Lange
Дата:
Сообщение: Re: PostgreSQL Advocacy, Thoughts and Comments
Следующее
От: Marek Lewczuk
Дата:
Сообщение: UTF support in WIN32 native and Lower/Upper in 7.5 release