Project

General

Profile

« Previous | Next » 

Revision 2821

sql.py: DbConn.col_info(): Fixed bug where is_nullable needed to be cast to a boolean

View differences:

sql.py
372 372
    
373 373
    def col_info(self, col):
374 374
        table = sql_gen.Table('columns', 'information_schema')
375
        cols = ['data_type', 'column_default', 'is_nullable']
375
        cols = ['data_type', 'column_default',
376
            cast(self, 'boolean', 'is_nullable')]
376 377
        
377 378
        conds = [('table_name', col.table.name), ('column_name', col.name)]
378 379
        schema = col.table.schema

Also available in: Unified diff