Skip to content

Commit

Permalink
DB: Commit password-change transaction
Browse files Browse the repository at this point in the history
Without autocommit (or a manual conn.commit()), the password
change was never sent to the database server.
  • Loading branch information
sgallagher committed Apr 7, 2015
1 parent f757103 commit d8db6e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/roles/databaseserver/tools/rk_db_setpwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def main():

# Connect to the local database via 'peer'
conn = psycopg2.connect(database=args.database)
conn.autocommit = True
log.info1("Connected to local database '%s'" % args.database)
cur = conn.cursor()

Expand Down

0 comments on commit d8db6e5

Please sign in to comment.