comparison roundup/backends/rdbms_common.py @ 3967:b1e81ad3fa6a 1.4.2

don't recompute the index name
author Richard Jones <richard@users.sourceforge.net>
date Thu, 07 Feb 2008 05:01:42 +0000
parents 3230f9c88086
children 905faf52a51f
comparison
equal deleted inserted replaced
3966:85e52526a791 3967:b1e81ad3fa6a
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 #$Id: rdbms_common.py,v 1.194 2008-02-07 03:28:34 richard Exp $ 18 #$Id: rdbms_common.py,v 1.195 2008-02-07 05:01:42 richard Exp $
19 """ Relational database (SQL) backend common code. 19 """ Relational database (SQL) backend common code.
20 20
21 Basics: 21 Basics:
22 22
23 - map roundup classes to relational tables 23 - map roundup classes to relational tables
593 self.sql(sql) 593 self.sql(sql)
594 594
595 # and now the retired unique index too 595 # and now the retired unique index too
596 index_name = '_%s_key_retired_idx'%cn 596 index_name = '_%s_key_retired_idx'%cn
597 if self.sql_index_exists(table_name, index_name): 597 if self.sql_index_exists(table_name, index_name):
598 sql = 'drop index _%s_key_retired_idx'%cn 598 sql = 'drop index '+index_name
599 self.sql(sql) 599 self.sql(sql)
600 600
601 def create_journal_table(self, spec): 601 def create_journal_table(self, spec):
602 """ create the journal table for a class given the spec and 602 """ create the journal table for a class given the spec and
603 already-determined cols 603 already-determined cols

Roundup Issue Tracker: http://roundup-tracker.org/