gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r209307 - /gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py
Date Tue, 05 Jul 2005 19:16:52 GMT
Author: leosimons
Date: Tue Jul  5 12:16:49 2005
New Revision: 209307

URL: http://svn.apache.org/viewcvs?rev=209307&view=rev
Log:
Fix a dumb SQL bug in dynagumper.

 * pygump/python/gump/plugins/dynagumper.py: id is now the primary key for projects, so use
that when updating the table.

Modified:
    gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py

Modified: gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py?rev=209307&r1=209306&r2=209307&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py (original)
+++ gump/branches/Gump3/pygump/python/gump/plugins/dynagumper.py Tue Jul  5 12:16:49 2005
@@ -223,9 +223,9 @@
                 % (tablename, project.name, description, module_id, id)
         else:
             # Update
-            cmd = """UPDATE %s SET description='%s',module_id='%s',id='%s'
-                     WHERE name = '%s';""" \
-                % (tablename, description, module_id, id, project.name)
+            cmd = """UPDATE %s SET description='%s',module_id='%s',name='%s'
+                     WHERE id = '%s';""" \
+                % (tablename, description, module_id, project.name, id)
         self.db.execute(cmd)
     
     def _add_project_version_to_db(self, project):



Mime
View raw message