Project

General

Profile

« Previous | Next » 

Revision 4557

sql_io.py: mk_errors_table(): Don't cache the sql.table_exists() query, because the table will be created and its existence must be rechecked

View differences:

lib/sql_io.py
196 196

  
197 197
def mk_errors_table(db, table):
198 198
    errors_table_ = errors_table(db, table, if_exists=False)
199
    if sql.table_exists(db, errors_table_): return
199
    if sql.table_exists(db, errors_table_, cacheable=False): return
200 200
    
201 201
    typed_cols = [
202 202
        sql_gen.TypedCol('column', 'text', nullable=False),

Also available in: Unified diff