Project

General

Profile

« Previous | Next » 

Revision 6904

sql.py: DbConn.col_info(): Fixed bug where need to run run_query() recoverably, because this query throws an exception if the column's table does not exist (the information_schema query just returned no rows)

View differences:

sql.py
487 487
attrelid = '''+qual_table.to_str(self)+'''::regclass
488 488
AND attname = '''+col_name_str.to_str(self)+'''
489 489
'''
490
                    , cacheable=cacheable, log_level=4))
490
                    , recover=True, cacheable=cacheable, log_level=4))
491 491
            except StopIteration: raise sql_gen.NoUnderlyingTableException(col)
492 492
            if is_array: type_ = sql_gen.ArrayType(type_)
493 493
        else:

Also available in: Unified diff