diff -r 10dd0dd78778 -r 31c12863fd9d server/session.py --- a/server/session.py Tue Apr 13 19:43:30 2010 +0200 +++ b/server/session.py Tue Apr 13 19:43:51 2010 +0200 @@ -277,7 +277,7 @@ def system_sql(self, sql, args=None, rollback_on_failure=True): """return a sql cursor on the system database""" - if not sql.split(None, 1)[0].upper() == 'SELECT': + if sql.split(None, 1)[0].upper() != 'SELECT': self.mode = 'write' source = self.pool.source('system') try: