Tickets

Issues

# XXX hack to work with mysql which doesn't have a real 'boolean' type


            # XXX hack to work with mysql which doesn't have a real 'boolean' type
            is_bool = isinstance(col.type, Boolean) or (isinstance(col.type, Integer) and getattr(col.type, 'display_width', None) == 1)

            col.errors = []
            if sizes[4] >= MIN_TABLE_SIZE:
                try:

History
    Changed by Laurent Defert on 2015-01-24 14:43:16 during daf3f2cdb447598e52e28b08eea9ae40e221f29f
  • File: db.py - dbannotate/db.py
  • Changed by Laurent Defert on 2015-01-24 11:34:13 during bfbcd498a91d84ee535142fe170ec21e4f94a165
  • Content: updated from
                # XXX hack to work with mysql which doesn't have a real 'boolean' type
                is_bool = isinstance(col.type, Boolean) or (isinstance(col.type, Integer) and getattr(col.type, 'display_width', None) == 1)
    
                col.errors = []
                if sizes[4] >= MIN_TABLE_SIZE:
                    res = session.query(col, func.count(col)).select_from(table).group_by(col).limit(MIN_TABLE_SIZE).all()