Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45304 invoked from network); 8 Jul 2009 00:07:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 00:07:27 -0000 Received: (qmail 11262 invoked by uid 500); 8 Jul 2009 00:07:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11212 invoked by uid 500); 8 Jul 2009 00:07:37 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 11204 invoked by uid 99); 8 Jul 2009 00:07:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 00:07:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 00:07:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8E6B234C004 for ; Tue, 7 Jul 2009 17:07:14 -0700 (PDT) Message-ID: <1377082344.1247011634810.JavaMail.jira@brutus> Date: Tue, 7 Jul 2009 17:07:14 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4208) Parameters ? with OFFSET and/or FETCH In-Reply-To: <934110193.1241352810323.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-4208: --------------------------------- Attachment: derby4208c.stat derby4208c.diff Uploading a slightly simplified version, which removes the special casing of literals (code is generated uniformly when a row count is provided). This makes for less clutter (e.g. two fewer args to the result set class/factory methods, only one range check instance). > Parameters ? with OFFSET and/or FETCH > ------------------------------------- > > Key: DERBY-4208 > URL: https://issues.apache.org/jira/browse/DERBY-4208 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.5.1.1 > Reporter: Steve Radman > Attachments: derby4208a.diff, derby4208a.stat, derby4208b.diff, derby4208b.stat, derby4208c.diff, derby4208c.stat > > > The new OFFSET/FETCH syntax does not support Parameters. > From ij against the toursdb I would like to do the following: > ij> prepare foo as 'select * from cities offset ? rows fetch first 10 rows only'; > but results in the following syntax error: > ERROR 42X01: Syntax error: Encountered "?" at line 1, column 29. > Parameterized OFFSET/FETCH is important for performance (can be prepared) and security (SQL strings not created on the fly). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.