problem creating users via pythons script - Mailing list pgsql-general

From Timothy Smith
Subject problem creating users via pythons script
Date
Msg-id 44BE1F45.7060403@open-networks.net
Whole thread Raw
Responses Re: problem creating users via pythons script  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
List pgsql-general
this is really newb of me but i can't manage to make a script to create
users.

cur.execute("""CREATE USER %s WITH PASSWORD %s IN GROUP %s
""",(StaffUserName,NewPassword,StaffGroup))

produces this error

ERROR:  syntax error at or near "'bob.smith'" at character 13

is it because i need to double quote or something? i'm sure the answer
is stupid and i'm just too tired.


pgsql-general by date:

Previous
From: Q
Date:
Subject: Re: Performance problem with query
Next
From: "Christian Rengstl"
Date:
Subject: Re: Performance problem with query