View Issue Details

IDProjectCategoryView StatusLast Update
0000308XMB1Bugspublic2010-01-23 18:18
Reportermiqrogroove Assigned Tomiqrogroove  
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Product Version1.9.11 
Target Version1.9.11.05Fixed in Version1.9.11.05 
Summary0000308: Fix Last Posts Still Not Working Right
DescriptionUrghhh. I don't know what the problem is yet, but there are still some forum values not being reset by this tool when they should be.
Steps To ReproduceEdit the lastpost value for a forum that has populated subforums but no posts at the top forum level. Then try to restore the lastpost value using Fix Last Posts.
TagsNo tags attached.
MySQL Version
PHP Version
Web Server
Browser
Flags
Original Reporter
SVN Revision1819

Relationships

related to 0000317 closedmiqrogroove Zero Count Flaws in fixftotals and fixmposts 

Activities

miqrogroove

2009-03-19 10:26

administrator   ~0000185

It appears that although the "Update all threads" query tolerates xmb_threads INNER JOIN xmb_posts nicely, the "Update all forums" query does not. It needs to return all forums so that all forums can be updated. Therefore, the table joins need to be nested 4-deep for accuracy and efficiency. I know this could be treated as only 2 unique domains in Jet SQL, but those tricks don't seem to be available here.

As long as I'm monkeying around in there, I think it's a good opportunity to reduce this entire mess to a single SELECT query.

miqrogroove

2009-03-19 11:47

administrator   ~0000186

It might have been possible to eliminate one of the subqueries by using a RIGHT JOIN syntax, but at this point it is more important for the code to make sense and be easy to maintain.

Issue History

Date Modified Username Field Change
2009-03-19 09:37 miqrogroove New Issue
2009-03-19 09:37 miqrogroove Status new => assigned
2009-03-19 09:37 miqrogroove Assigned To => miqrogroove
2009-03-19 10:26 miqrogroove Note Added: 0000185
2009-03-19 10:26 miqrogroove Projection none => minor fix
2009-03-19 10:26 miqrogroove ETA none => < 1 day
2009-03-19 10:26 miqrogroove Steps to Reproduce Updated
2009-03-19 11:47 miqrogroove SVN Revision => 1819
2009-03-19 11:47 miqrogroove Note Added: 0000186
2009-03-19 11:47 miqrogroove Status assigned => resolved
2009-03-19 11:47 miqrogroove Fixed in Version => 1.9.11.05
2009-03-19 11:47 miqrogroove Resolution open => fixed
2009-03-23 04:17 miqrogroove Relationship added related to 0000317
2010-01-23 18:18 miqrogroove Status resolved => closed