Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 28402 invoked from network); 4 Jul 2008 11:36:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 11:36:01 -0000 Received: (qmail 95863 invoked by uid 500); 4 Jul 2008 11:36:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 95637 invoked by uid 500); 4 Jul 2008 11:36:01 -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 95626 invoked by uid 99); 4 Jul 2008 11:36:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 04:36:01 -0700 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; Fri, 04 Jul 2008 11:35:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0207D234C153 for ; Fri, 4 Jul 2008 04:35:39 -0700 (PDT) Message-ID: <964752911.1215171339006.JavaMail.jira@brutus> Date: Fri, 4 Jul 2008 04:35:39 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3755) ij's help text lacks the optional [HOLD | NOHOLD] syntax for GET CURSOR In-Reply-To: <480743298.1215097845093.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-3755: --------------------------------- Attachment: derby-3755.stat derby-3755.diff Thanks for looking at this Kim. You are right, the WITH keyword is required. Uploading a patch, derby-3755, which corrects the syntax for all the locales thus: GET [SCROLL INSENSITIVE] [WITH { HOLD | NOHOLD }] CURSOR .... It should be safe to edit the locale files even for a non-native speaker since the addition is in syntax part only. I manually checked English, German, Italian, simplified and traditional Chinese output (e.g. using java -Dderby.ui.locale=zh_CN -Dderby.ui.codeset=utf8 org.apache.derby.tools.ij) to verify that the output still looks ok. Btw, it seems odd that the codeset used for output is still ISO8859-1 even if locale is specified say as Chinese. If I omit the derby.ui.codeset setting, I only see question marks for the Chinese characters. "utf8" might be a more sensible default for non-western locales. > ij's help text lacks the optional [HOLD | NOHOLD] syntax for GET CURSOR > ----------------------------------------------------------------------- > > Key: DERBY-3755 > URL: https://issues.apache.org/jira/browse/DERBY-3755 > Project: Derby > Issue Type: Bug > Components: Tools > Reporter: Dag H. Wanvik > Priority: Minor > Fix For: 10.5.0.0 > > Attachments: derby-3755.diff, derby-3755.stat > > > ij's help command shows the syntax of GET CURSOR as: > GET [SCROLL INSENSITIVE] CURSOR name AS 'SQL-J query'; > -- gets a cursor (JDBC result set) on the query > -- SCROLL cursors are only available > -- in JDBC 2.0 and higher. > -- (Cursor scroll type is ignored in JDBC 1.X.) > One can actually also specify holdability, so the syntax show read: > GET [SCROLL INSENSITIVE] [HOLD | NOHOLD] CURSOR name AS 'SQL-J query'; > and the comment should also state that HOLD is the default. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.