Project

General

Profile

« Previous | Next » 

Revision 2192

bin/map: connect_db(): Turn on autocommit mode in debug mode if commit is on, so that incremental results can be seen in the DB

View differences:

map
120 120
    
121 121
    def connect_db(db_config):
122 122
        log('Connecting to '+sql.db_config_str(db_config))
123
        return sql.connect(db_config, log_debug=log_debug, caching=cache_sql)
123
        return sql.connect(db_config, caching=cache_sql,
124
            autocommit=debug and commit, log_debug=log_debug)
124 125
    
125 126
    if end != None: end_str = str(end-1) # end is one past the last #
126 127
    else: end_str = 'end'

Also available in: Unified diff