Make sure no substitution attemps is made when params is empty. (#2212)

Close #2209
This commit is contained in:
Bastien Wirtz
2022-02-14 15:20:38 +01:00
committed by GitHub
parent 2d15e0dae6
commit 38d84b1d15
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ class Postgresql(object):
cursor = None
try:
cursor = self._connection.cursor()
cursor.execute(sql, params)
cursor.execute(sql, params or None)
return cursor
except psycopg.Error as e:
if cursor and cursor.connection.closed == 0:
+1 -1
View File
@@ -91,7 +91,7 @@ bootstrap:
# Some additional users users which needs to be created after initializing new cluster
users:
admin:
password: admin
password: admin%
options:
- createrole
- createdb
+1 -1
View File
@@ -85,7 +85,7 @@ bootstrap:
# Some additional users users which needs to be created after initializing new cluster
users:
admin:
password: admin
password: admin%
options:
- createrole
- createdb
+1 -1
View File
@@ -82,7 +82,7 @@ bootstrap:
# Some additional users users which needs to be created after initializing new cluster
users:
admin:
password: admin
password: admin%
options:
- createrole
- createdb