[openguides-tickets] Re: [OpenGuides] #126: Duplicate auto-create?

OpenGuides tracadmin at urchin.earth.li
Sat Jun 17 22:26:32 BST 2006


#126: Duplicate auto-create?
-----------------------------------+----------------------------------------
 Reporter:  dom                    |        Owner:  dom
     Type:  task                   |       Status:  new
 Priority:  normal                 |    Milestone:     
Component:  oxford.openguides.org  |      Version:     
 Severity:  normal                 |   Resolution:     
 Keywords:                         |  
-----------------------------------+----------------------------------------
Comment (by ivorw):

 This looks like it could be a database problem. The auto_create code
 checks categories and locales prior existence using node_exists
 (OpenGuides.pm lines 951-973).

 It looks as if in this case, node_exists gave a false negative. This sub
 is in Wiki::Toolkit::Store::Database, and seems to be taking the row count
 returned from a query. When the node does not exist, no rows are returned
 from the query, and this zero value is read as false.

 If there were some database error, I would have expected DBI or the driver
 module to throw an exception, as we have got RaiseError set to 1.

 Maybe there is some DB admin overdue on Oxford.

-- 
Ticket URL: <http://dev.openguides.org/ticket/126>
OpenGuides <http://openguides.org/>
The OpenGuides city guides project


More information about the openguides-tickets mailing list