VirtualMailManager/relocated.py
branchv0.6.x
changeset 379 7518d927d443
parent 366 d6573da35b5f
child 417 8209da83e256
--- a/VirtualMailManager/relocated.py	Tue Feb 01 16:57:09 2011 +0000
+++ b/VirtualMailManager/relocated.py	Wed Feb 02 19:03:54 2011 +0000
@@ -82,7 +82,8 @@
 
         dbc = self._dbh.cursor()
         if not update:
-            dbc.execute('INSERT INTO relocated VALUES (%s, %s, %s)',
+            dbc.execute('INSERT INTO relocated (gid, address, destination) '
+                        'VALUES (%s, %s, %s)',
                         (self._gid, self._addr.localpart, str(self._dest)))
         else:
             dbc.execute('UPDATE relocated SET destination = %s WHERE gid = %s '