Project

General

Profile

« Previous | Next » 

Revision 2785

sql.py: tables(): Use select() instead of a custom run_query() to avoid using params, which will be deprecated to make it easier to support old versions of Python

View differences:

lib/sql.py
1031 1031
    else: compare = 'LIKE'
1032 1032
    
1033 1033
    module = util.root_module(db.db)
1034
    params = {'schema_like': schema_like, 'table_like': table_like}
1035 1034
    if module == 'psycopg2':
1036 1035
        conds = [('schemaname', sql_gen.CompareCond(schema_like, compare)),
1037 1036
            ('tablename', sql_gen.CompareCond(table_like, compare))]

Also available in: Unified diff