server/session.py
changeset 5238 31c12863fd9d
parent 5201 2b4267157f85
parent 5226 2e215efcc3a6
child 5423 e15abfdcce38
--- 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: