Support strict result ordering in list for consistent regression answers.

This commit is contained in:
Andrew McMillan 2011-09-19 08:41:27 +12:00
parent 45ed6fb3f4
commit 1e81d0325e
4 changed files with 1600 additions and 1596 deletions

View File

@ -28,6 +28,9 @@ if ( !empty($changedsince) ) {
}
if ( !empty($where)) $sql .= ' WHERE '.$where;
if ( !empty($c->strict_result_ordering) && $c->strict_result_ordering ) {
$sql .= ' ORDER BY tzid';
}
/*
<dtstamp>2009-10-11T09:32:11Z</dtstamp>
<summary>

View File

@ -8,72 +8,72 @@ Content-Type: application/xml; charset="utf-8"
<dtstamp>all good</dtstamp>
<summary>
<tzid>Pacific/Auckland</tzid>
<last-modified>20110919T032240Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<local-name lang="en_US">Pacific/Auckland</local-name>
</summary>
<summary>
<tzid>America/Los_Angeles</tzid>
<last-modified>20110918T082240Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<local-name lang="en_US">America/Los_Angeles</local-name>
</summary>
<summary>
<tzid>Europe/Helsinki</tzid>
<last-modified>20110918T182240Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<local-name lang="en_US">Europe/Helsinki</local-name>
</summary>
<summary>
<tzid>New Zealand Standard Time</tzid>
<last-modified>20110919T032248Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<alias>Pacific/Auckland</alias>
<local-name lang="en_US">New Zealand Standard Time</local-name>
</summary>
<summary>
<tzid>/softwarestudio.org/Olson_20011030_5/Pacific/Auckland</tzid>
<last-modified>20110919T032253Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<alias>Pacific/Auckland</alias>
<local-name lang="en_US">/softwarestudio.org/Olson_20011030_5/Pacific/Auckland</local-name>
</summary>
<summary>
<tzid>/mozilla.org/20050126_1/Pacific/Auckland</tzid>
<last-modified>20110919T032256Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<alias>Pacific/Auckland</alias>
<local-name lang="en_US">/mozilla.org/20050126_1/Pacific/Auckland</local-name>
</summary>
<summary>
<tzid>/mozilla.org/20050126_1/Antarctica/McMurdo</tzid>
<last-modified>20110919T032256Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<alias>Antarctica/McMurdo</alias>
<local-name lang="en_US">/mozilla.org/20050126_1/Antarctica/McMurdo</local-name>
</summary>
<summary>
<tzid>/mozilla.org/20070129_1/Antarctica/McMurdo</tzid>
<last-modified>20110919T032258Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<alias>Antarctica/McMurdo</alias>
<local-name lang="en_US">/mozilla.org/20070129_1/Antarctica/McMurdo</local-name>
</summary>
<summary>
<tzid>Europe/Prague</tzid>
<last-modified>20110919T032319Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<local-name lang="en_US">Europe/Prague</local-name>
</summary>
<summary>
<tzid>America/New_York</tzid>
<last-modified>20110918T112328Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<local-name lang="en_US">America/New_York</local-name>
</summary>
<summary>
<tzid>(UTC-05:00) Eastern Time (US &amp; Canada)</tzid>
<last-modified>20110918T112401Z</last-modified>
<last-modified>all good</last-modified>
<inactive/>
<alias>America/New_York</alias>
<local-name lang="en_US">(UTC-05:00) Eastern Time (US &amp; Canada)</local-name>

View File

@ -6,3 +6,4 @@ URL=http://regression.host/tz.php?action=list&returnall&lang=en_US
HEAD
REPLACE=/dtstamp>[0-9TZ]{16}/dtstamp>all good/
REPLACE=/last-modified>[0-9TZ]{16}/last-modified>all good/

File diff suppressed because it is too large Load Diff