Project

General

Profile

« Previous | Next » 

Revision 2873

csv2db: Adding indexes: Fixed bug where col.to_Col() could not be used because sql.add_index() does not support name-only columns (plain strings are OK, though)

View differences:

csv2db
114 114
        log('Adding indexes')
115 115
        for col in typed_cols[1:]: # exclude pkey
116 116
            log('Adding index on '+col.name)
117
            sql.add_index(db, col.to_Col(), table)
117
            sql.add_index(db, col.name, table)
118 118
            db.db.commit()
119 119
        
120 120
        log('Vacuuming table')

Also available in: Unified diff