diff -r 9ff0dee81eb2 -r 2e215efcc3a6 server/session.py --- a/server/session.py Tue Apr 13 15:46:44 2010 +0200 +++ b/server/session.py Tue Apr 13 15:46:46 2010 +0200 @@ -276,7 +276,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: