Project

General

Profile

« Previous | Next » 

Revision 2274

sql.py: mk_insert_select(): Use sql_gen.table2sql_gen().to_str() to escape the table

View differences:

lib/sql.py
549 549
    '''
550 550
    if select_query == None: select_query = 'DEFAULT VALUES'
551 551
    if cols == []: cols = None # no cols (all defaults) = unknown col names
552
    if not table_is_esc: check_name(table)
552
    table = sql_gen.table2sql_gen(table, table_is_esc).to_str(db)
553 553
    
554 554
    # Build query
555 555
    query = 'INSERT INTO '+table

Also available in: Unified diff