Tickets
Issues
# XXX hack to work with mysql which doesn't have a real 'boolean' type- Id: b761eeeca6e20bb2d614857df3bd0544
- Status: Open
- Initial commit: cecd6e920e5417abc765d5a652c8a669b321bd94
- Creation date: 2015-01-04 17:39:55
- Last changed: 2015-01-24 14:43:16
- Created by: Romain Bignon
- Last changed by: Laurent Defert
- File: dbannotate/db.py
# 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()