Project

General

Profile

« Previous | Next » 

Revision 3127

sql.py: create_table(): Fixed bug where needed to run query in recover mode in case the table exists and was created before the current connection, such that the CREATE TABLE statement would not have been cached

View differences:

lib/sql.py
1206 1206
        str_ += '\n);'
1207 1207
        
1208 1208
        try:
1209
            run_query(db, str_, cacheable=True, log_level=2,
1209
            run_query(db, str_, recover=True, cacheable=True, log_level=2,
1210 1210
                log_ignore_excs=(DuplicateException,))
1211 1211
            break
1212 1212
        except DuplicateException:

Also available in: Unified diff