Wedge

Public area => The Pub => Features => Topic started by: Arantor on March 22nd, 2011, 05:31 PM

Title: Find and repair errors
Post by: Arantor on March 22nd, 2011, 05:31 PM
I've been looking at how it works in SMF because one of the things we will need to do is maybe extend it (and I had to write something similar for something else)

I have to admit, I'm more than a little confused why it's done how it's done in SMF. Let's get a really big array, one element for each test we're going to perform, then just for shits 'n' giggles, let's stuff at minimum one query into that array (raw SQL) for what we're testing for, likely a second query to repair it, sometimes a lambda function to pass the rows from the original test query to...

Is there something wrong with having one function per test and encapsulating it like that?
Title: Re: Find and repair errors
Post by: Nao on March 22nd, 2011, 06:52 PM
I don't know... What matters to me is that it works ;) And it doesn't always. (Board relationship issue reported but not fixed.)