From: mkanat%bugzilla.org <> Date: Tue, 1 Jul 2008 13:24:08 +0000 (+0000) Subject: Bug 442848: [Oracle] Remove hardcoded "ORDER BY quipid" in Bugzilla::DB::Oracle X-Git-Tag: bugzilla-3.2rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6145a851e5c05d152652ce6a1bd5a1808826fa05;p=thirdparty%2Fbugzilla.git Bug 442848: [Oracle] Remove hardcoded "ORDER BY quipid" in Bugzilla::DB::Oracle Patch By Xiaoou Wu r=mkanat, a=mkanat --- diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index 92f1247de7..6bd1001780 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -305,8 +305,8 @@ sub adjust_statement { if ($new_sql =~ /(.*\s+)FROM(\s+.*)/i) { my ($before_from,$after_from) = ($1,$2); $before_where = "$before_from FROM ($before_from," - . " ROW_NUMBER() OVER (ORDER BY quipid) R " - . " FROM $after_from ) "; + . " ROW_NUMBER() OVER (ORDER BY 1) R " + . " FROM $after_from ) "; $after_where = " R BETWEEN $offset+1 AND $limit+$offset"; } } else {