Project

General

Profile

« Previous | Next » 

Revision 6905

sql.py: DbConn.col_info(): raising sql_gen.NoUnderlyingTableException: Fixed bug where also need to catch DoesNotExistException, which is thrown by ::regclass

View differences:

lib/sql.py
488 488
AND attname = '''+col_name_str.to_str(self)+'''
489 489
'''
490 490
                    , recover=True, cacheable=cacheable, log_level=4))
491
            except StopIteration: raise sql_gen.NoUnderlyingTableException(col)
491
            except (DoesNotExistException, StopIteration):
492
                raise sql_gen.NoUnderlyingTableException(col)
492 493
            if is_array: type_ = sql_gen.ArrayType(type_)
493 494
        else:
494 495
            table = sql_gen.Table('columns', 'information_schema')

Also available in: Unified diff