]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 442848: [Oracle] Remove hardcoded "ORDER BY quipid" in Bugzilla::DB::Oracle
authormkanat%bugzilla.org <>
Tue, 1 Jul 2008 13:24:08 +0000 (13:24 +0000)
committermkanat%bugzilla.org <>
Tue, 1 Jul 2008 13:24:08 +0000 (13:24 +0000)
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat

Bugzilla/DB/Oracle.pm

index 92f1247de7881985c02eacfc6cc6c12660eb1d4b..6bd1001780cb93698041c689480a91478d7a144b 100644 (file)
@@ -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 {