Skip to content

Commit c101386

Browse files
committed
Merge pull request influxdata#291 from mkren/master
create_user() - added quotes to the username (Thanks @mkren !)
2 parents 1dcda47 + fe30159 commit c101386

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

influxdb/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,8 @@ def create_user(self, username, password, admin=False):
650650
privileges or not
651651
:type admin: boolean
652652
"""
653-
text = "CREATE USER {0} WITH PASSWORD '{1}'".format(username, password)
653+
text = "CREATE USER \"{0}\" WITH PASSWORD '{1}'".format(username,
654+
password)
654655
if admin:
655656
text += ' WITH ALL PRIVILEGES'
656657
self.query(text)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy