changeset 7229 | a60522259c2c |
parent 7221 | dc79f1a3c6ed |
child 7341 | c419c2d0d13e |
--- a/server/sqlutils.py Fri Apr 15 08:18:59 2011 +0200 +++ b/server/sqlutils.py Fri Apr 15 08:22:38 2011 +0200 @@ -335,6 +335,9 @@ def init_postgres_connexion(cnx): cnx.cursor().execute('SET TIME ZONE UTC') + # commit is needed, else setting are lost if the connection is first + # rollbacked + cnx.commit() postgres_hooks = SQL_CONNECT_HOOKS.setdefault('postgres', []) postgres_hooks.append(init_postgres_connexion)