comparison roundup/backends/back_sqlite.py @ 3347:9020fe58c51c

more errors. backport candidate
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Wed, 08 Jun 2005 03:41:21 +0000
parents 3518d1ffd940
children f2fda3e6fc8b
comparison
equal deleted inserted replaced
3346:a133f03df238 3347:9020fe58c51c
1 # $Id: back_sqlite.py,v 1.42 2005-05-02 05:48:59 richard Exp $ 1 # $Id: back_sqlite.py,v 1.43 2005-06-08 03:41:21 anthonybaxter Exp $
2 '''Implements a backend for SQLite. 2 '''Implements a backend for SQLite.
3 3
4 See https://pysqlite.sourceforge.net/ for pysqlite info 4 See https://pysqlite.sourceforge.net/ for pysqlite info
5 5
6 6
166 old_has[name] = 1 166 old_has[name] = 1
167 if new_has(name) or not isinstance(prop, hyperdb.Multilink): 167 if new_has(name) or not isinstance(prop, hyperdb.Multilink):
168 continue 168 continue
169 # it's a multilink, and it's been removed - drop the old 169 # it's a multilink, and it's been removed - drop the old
170 # table. First drop indexes. 170 # table. First drop indexes.
171 self.drop_multilink_table_indexes(spec.classname, ml) 171 self.drop_multilink_table_indexes(spec.classname, name)
172 sql = 'drop table %s_%s'%(spec.classname, prop) 172 sql = 'drop table %s_%s'%(spec.classname, prop)
173 self.sql(sql) 173 self.sql(sql)
174 old_has = old_has.has_key 174 old_has = old_has.has_key
175 175
176 # now figure how we populate the new table 176 # now figure how we populate the new table

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