Edgewall Software

Ticket #2822: trac-wikicap-r2944.patch

File trac-wikicap-r2944.patch, 852 bytes (added by Andres Salomon <dilinger@…>, 6 years ago)

Fix incorrect table name in sql statement; against r2944.

  • trac/wiki/model.py

    ------------------------------------------------------------
    revno: 7
    committer: Andres Salomon <dilinger@athenacr.com>
    branch nick: trac-wikicap
    timestamp: Wed 2006-03-01 02:37:59 -0500
    message:
      Fix a minor bug with a sql statement; the table name is 'wiki', not 'WIKI'.
    === modified file 'trac/wiki/model.py'
     
    111111 
    112112        if self.text != self.old_text: 
    113113            cursor = db.cursor() 
    114             cursor.execute("INSERT INTO WIKI (name,version,time,author,ipnr," 
     114            cursor.execute("INSERT INTO wiki (name,version,time,author,ipnr," 
    115115                           "text,comment,readonly) VALUES (%s,%s,%s,%s,%s,%s," 
    116116                           "%s,%s)", (self.name, self.version + 1, t, author, 
    117117                           remote_addr, self.text, comment, self.readonly))