[schema sync hooks] fix format string stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Feb 2012 16:53:17 +0100
branchstable
changeset 8215 4b32678c21a7
parent 8213 076c80543fcd
child 8216 99ff746e8de8
child 8217 0a467663c3fe
[schema sync hooks] fix format string
hooks/syncschema.py
--- a/hooks/syncschema.py	Fri Feb 10 16:23:26 2012 +0100
+++ b/hooks/syncschema.py	Fri Feb 10 16:53:17 2012 +0100
@@ -492,7 +492,7 @@
                     default = syssource.dbhelper.sql_current_date()
                 elif default == 'NOW':
                     default = syssource.dbhelper.sql_current_timestamp()
-                session.system_sql('UPDATE %s SET %s=%(default)s'
+                session.system_sql('UPDATE %s SET %s=%s'
                                    % (table, column, default))
             else:
                 session.system_sql('UPDATE %s SET %s=%%(default)s' % (table, column),