VirtualMailManager/alias.py
branchv0.6.x
changeset 379 7518d927d443
parent 370 1b1f8f0cc687
child 417 8209da83e256
--- a/VirtualMailManager/alias.py	Tue Feb 01 16:57:09 2011 +0000
+++ b/VirtualMailManager/alias.py	Wed Feb 02 19:03:54 2011 +0000
@@ -125,8 +125,9 @@
             return destinations
         self._check_expansion(len(destinations))
         dbc = self._dbh.cursor()
-        dbc.executemany("INSERT INTO alias VALUES (%d, '%s', %%s)" %
-                        (self._gid, self._addr.localpart),
+        dbc.executemany("INSERT INTO alias (gid, address, destination) "
+                        "VALUES (%d, '%s', %%s)" % (self._gid,
+                                                    self._addr.localpart),
                         ((str(destination),) for destination in destinations))
         self._dbh.commit()
         dbc.close()