author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 13 Apr 2010 15:46:46 +0200 | |
branch | stable |
changeset 5226 | 2e215efcc3a6 |
parent 5225 | 9ff0dee81eb2 |
child 5227 | ed1c138299f2 |
server/session.py | file | annotate | diff | comparison | revisions |
--- 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: