branch | stable |
changeset 5226 | 2e215efcc3a6 |
parent 5193 | c9671feff5e2 |
child 5238 | 31c12863fd9d |
child 5421 | 8167de96c523 |
--- 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: