Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit e377c0b191a04745a0f094bbc77d9a41f41da93b

Compare versions by release number, not by id
  
156156 WHERE
157157 Version.addon_id = {$id}
158158 ORDER BY
159 Version.id + IF({$app_ver} >= CAST(B.version AS DECIMAL(3,3)) AND {$app_ver} <= CAST(C.version AS DECIMAL(3,3)), 1000000, 0) DESC
159 Version.version + IF({$app_ver} >= CAST(B.version AS DECIMAL(3,3)) AND {$app_ver} <= CAST(C.version AS DECIMAL(3,3)), 1000000, 0) DESC
160160 LIMIT 1
161161 ";
162162
194194 WHERE
195195 Version.addon_id = {$id} AND ({$version} = 0 OR Version.version = {$version})
196196 ORDER BY
197 Version.id + IF({$app_ver} >= CAST(B.version AS DECIMAL(3,3)) AND {$app_ver} <= CAST(C.version AS DECIMAL(3,3)), 1000000, 0) DESC
197 Version.version + IF({$app_ver} >= CAST(B.version AS DECIMAL(3,3)) AND {$app_ver} <= CAST(C.version AS DECIMAL(3,3)), 1000000, 0) DESC
198198 LIMIT 1
199199 ";
200200