VirtualMailManager/aliasdomain.py
branchv0.6.x
changeset 379 7518d927d443
parent 366 d6573da35b5f
child 417 8209da83e256
--- a/VirtualMailManager/aliasdomain.py	Tue Feb 01 16:57:09 2011 +0000
+++ b/VirtualMailManager/aliasdomain.py	Wed Feb 02 19:03:54 2011 +0000
@@ -75,8 +75,8 @@
             raise ADErr(_(u"The target domain '%s' doesn't exist.") %
                         self._domain.name, NO_SUCH_DOMAIN)
         dbc = self._dbh.cursor()
-        dbc.execute('INSERT INTO domain_name VALUES (%s, %s, FALSE)',
-                    (self._name, self._domain.gid))
+        dbc.execute('INSERT INTO domain_name (domainname, gid, is_primary) '
+                    'VALUES (%s, %s, FALSE)', (self._name, self._domain.gid))
         self._dbh.commit()
         dbc.close()
         self._gid = self._domain.gid