Project

General

Profile

« Previous | Next » 

Revision 3713

sql_io.py: put_table(): Fixed bug where Missing mapping for NOT NULL column errors should actually be warnings because sometimes the mappings include extra tables which aren't used by the dataset

View differences:

lib/sql_io.py
559 559
                except KeyError:
560 560
                    msg = 'Missing mapping for NOT NULL column '+out_col
561 561
                    log_debug(msg)
562
                    if default == None: on_error(SyntaxError(msg))# required col
562
                    if default == None: warnings.warn(UserWarning(msg))
563
                        # not an error because sometimes the mappings include
564
                        # extra tables which aren't used by the dataset
563 565
                    remove_all_rows()
564 566
            else: ignore(in_col, None, e)
565 567
        except sql.CheckException, e:

Also available in: Unified diff