#2822: Wiki model page uses incorrect table name
----------------------------------------------------+-----------------------
 Reporter:  Andres Salomon <[EMAIL PROTECTED]>  |        Owner:  jonas 
     Type:  defect                                  |       Status:  closed
 Priority:  normal                                  |    Milestone:  0.10  
Component:  general                                 |      Version:  devel 
 Severity:  normal                                  |   Resolution:  fixed 
 Keywords:                                          |  
----------------------------------------------------+-----------------------
Changes (by cboos):

  * status:  new => closed
  * resolution:  => fixed

Old description:

> Hi,
>
> model.py uses the table name WIKI where it should be using wiki; this
> results in the following traceback:
>

>  File "/usr/local/lib/python2.4/site-packages/trac/wiki/web_ui.py", line
> 189, in _do_save
>     req.remote_addr)
>   File "/usr/local/lib/python2.4/site-packages/trac/wiki/model.py", line
> 116, in save
>     "%s,%s)", (self.name, self.version + 1, t, author,
>   File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47,
> in execute
>     return self.cursor.execute(sql_escape_percent(sql), args)
>   File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47,
> in execute
>     return self.cursor.execute(sql_escape_percent(sql), args)
>   File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 137,
> in execute
>     self.errorhandler(self, exc, value)
>   File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line
> 33, in defaulterrorhandler
>     raise errorclass, errorvalue
> ProgrammingError: (1146, "Table 'test.WIKI' doesn't exist")
>

> (Ignore the mysqldb stuff; this is w/ patches from #986).

New description:

 Hi,

 model.py uses the table name WIKI where it should be using wiki; this
 results in the following traceback:

 {{{
  File "/usr/local/lib/python2.4/site-packages/trac/wiki/web_ui.py", line
 189, in _do_save
     req.remote_addr)
   File "/usr/local/lib/python2.4/site-packages/trac/wiki/model.py", line
 116, in save
     "%s,%s)", (self.name, self.version + 1, t, author,
   File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47,
 in execute
     return self.cursor.execute(sql_escape_percent(sql), args)
   File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47,
 in execute
     return self.cursor.execute(sql_escape_percent(sql), args)
   File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 137, in
 execute
     self.errorhandler(self, exc, value)
   File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 33,
 in defaulterrorhandler
     raise errorclass, errorvalue
 ProgrammingError: (1146, "Table 'test.WIKI' doesn't exist")
 }}}

 (Ignore the mysqldb stuff; this is w/ patches from #986).

Comment:

 Patch committed in r2974, thanks again!

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2822>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to