Opened 15 years ago

Last modified 14 years ago

#126 new task

Duplicate auto-create?

Reported by: Dominic Hargreaves Owned by: Nobody
Priority: normal Milestone:
Component: Version:
Severity: normal Keywords:

Change History (2)

comment:1 Changed 15 years ago by Ivor Williams

This looks like it could be a database problem. The auto_create code checks categories and locales prior existence using node_exists ( 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.

comment:2 Changed 14 years ago by Dominic Hargreaves

Owner: changed from Dominic Hargreaves to Nobody
Note: See TracTickets for help on using tickets.