No parameters support in "create user"?

Поиск
Список
Период
Сортировка
От Shachar Shemesh
Тема No parameters support in "create user"?
Дата
Msg-id 414EC741.2000506@shemesh.biz
обсуждение исходный текст
Ответы Re: No parameters support in "create user"?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi list,

When I try to create a user using the "create user" SQL command, where 
the command is being executed using the PQexecParams function from 
libpq, and the username and password are passed as "text" (oid 0x19) 
parameters (binary), I get a syntax error. The command I'm doing is:

create user $1 with encrypted password $2

Any idea why this is not working? Is it supposed to work? Trying to pass 
only the password as a parameter does not work either.
         Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/



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

Предыдущее
От: Paramveer.Singh@trilogy.com
Дата:
Сообщение: schema level variables and deferrable unique constraints
Следующее
От: Greg Stark
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0