Ticket #4492: add-quote_name-psycopg2.diff

File add-quote_name-psycopg2.diff, 565 bytes (added by John Shaffer <jshaffer2112@…>, 17 years ago)
  • db/backends/postgresql_psycopg2/base.py

     
    193193                style.SQL_KEYWORD('SELECT'),
    194194                style.SQL_FIELD(quote_name('id')),
    195195                style.SQL_KEYWORD('FROM'),
    196                 style.SQL_TABLE(f.m2m_db_table())))
     196                style.SQL_TABLE(quote_name(f.m2m_db_table()))))
    197197    return output
    198198       
    199199OPERATOR_MAPPING = {
Back to Top