Please review this at http://codereview.appspot.com/186092

Affected files:
  M trytond/backend/postgresql/table.py


Index: trytond/backend/postgresql/table.py
===================================================================
--- a/trytond/backend/postgresql/table.py
+++ b/trytond/backend/postgresql/table.py
@@ -179,16 +179,16 @@

         self.cursor.execute("ALTER TABLE \"%s\" " \
                        "RENAME COLUMN \"%s\" " \
-                       "TO temp_change_size" % \
+                       "TO _temp_change_size" % \
                        (self.table_name, column_name))
         self.cursor.execute("ALTER TABLE \"%s\" " \
                        "ADD COLUMN \"%s\" %s" % \
                        (self.table_name, column_name, column_type))
         self.cursor.execute("UPDATE \"%s\" " \
-                       "SET \"%s\" = temp_change_size::%s" % \
+                       "SET \"%s\" = _temp_change_size::%s" % \
                        (self.table_name, column_name, column_type))
         self.cursor.execute("ALTER TABLE \"%s\" " \
-                       "DROP COLUMN temp_change_size" % \
+                       "DROP COLUMN _temp_change_size" % \
                        (self.table_name,))
         self._update_definitions()




-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/
twitter: http://twitter.com/cedrickrier
identi.ca: http://identi.ca/cedrickrier

Attachment: pgprqb2Dqxmqk.pgp
Description: PGP signature

Reply via email to