Return-Path: X-Original-To: apmail-empire-db-commits-archive@www.apache.org Delivered-To: apmail-empire-db-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9D78100E3 for ; Fri, 13 Sep 2013 16:00:48 +0000 (UTC) Received: (qmail 20276 invoked by uid 500); 13 Sep 2013 10:35:05 -0000 Delivered-To: apmail-empire-db-commits-archive@empire-db.apache.org Received: (qmail 20157 invoked by uid 500); 13 Sep 2013 10:35:00 -0000 Mailing-List: contact commits-help@empire-db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-dev@empire-db.apache.org Delivered-To: mailing list commits@empire-db.apache.org Received: (qmail 20070 invoked by uid 500); 13 Sep 2013 10:34:56 -0000 Delivered-To: apmail-incubator-empire-db-commits@incubator.apache.org Received: (qmail 20022 invoked by uid 99); 13 Sep 2013 10:34:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Sep 2013 10:34:51 +0000 Date: Fri, 13 Sep 2013 10:34:51 +0000 (UTC) From: =?utf-8?Q?Rainer_D=C3=B6bele_=28JIRA=29?= To: empire-db-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (EMPIREDB-192) Implement limitRows and skipRows for Oracle MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rainer D=C3=B6bele created EMPIREDB-192: -------------------------------------- Summary: Implement limitRows and skipRows for Oracle Key: EMPIREDB-192 URL: https://issues.apache.org/jira/browse/EMPIREDB-192 Project: Empire-DB Issue Type: Improvement Affects Versions: empire-db-2.4.2 Reporter: Rainer D=C3=B6bele Assignee: Rainer D=C3=B6bele Currently only limitRows is supported for Oracle with the limitation of a p= otentially incorrect order of the rows. Properly implement limitRows and skipRows by wrapping the select command li= ke follows: for limit rows only: SELECT * FROM ( SELECT .... ORDER BY ... ) row_ WHERE rownum<=3D{limit} for limitRows and skipRows: SELECT * FROM (SELECT row_.*, rownum rownum_ FROM ( SELECT .... ORDER BY ... )) row_ WHERE rownum<=3D{skip+limit}) WHERE rownum_>{skip} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira