Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 68912 invoked from network); 13 Nov 2009 00:33:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 00:33:03 -0000 Received: (qmail 47438 invoked by uid 500); 13 Nov 2009 00:33:03 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47414 invoked by uid 500); 13 Nov 2009 00:33:03 -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 47406 invoked by uid 99); 13 Nov 2009 00:33:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 00:33:03 +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; Fri, 13 Nov 2009 00:33:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9235E234C1EF for ; Thu, 12 Nov 2009 16:32:39 -0800 (PST) Message-ID: <1418030187.1258072359584.JavaMail.jira@brutus> Date: Fri, 13 Nov 2009 00:32:39 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-4190) Incorrect example for SYSCS_DIAG.CONTAINED_ROLES in the reference manual In-Reply-To: <539236402.1240838070439.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-4190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Pendleton resolved DERBY-4190. ------------------------------------ Resolution: Fixed Fix Version/s: 10.6.0.0 Thanks Kim and Dag for the reviews. I changed 'reader' to 'READER' and current_role to CURRENT_ROLE and submitted the change to the docs trunk as revision 835665. > Incorrect example for SYSCS_DIAG.CONTAINED_ROLES in the reference manual > ------------------------------------------------------------------------ > > Key: DERBY-4190 > URL: https://issues.apache.org/jira/browse/DERBY-4190 > Project: Derby > Issue Type: Bug > Components: Documentation > Affects Versions: 10.5.1.1 > Reporter: Knut Anders Hatlen > Assignee: Bryan Pendleton > Priority: Minor > Fix For: 10.6.0.0 > > Attachments: docs.diff, rrefsyscsdiagtables.html > > > The example for SYSCS_DIAG.CONTAINED_ROLES in the reference manual does not work. > http://db.apache.org/derby/docs/dev/ref/rrefsyscsdiagtables.html > The example looks like this: > SELECT * FROM TABLE (SYSCS_DIAG.CONTAINED_ROLES(reader)) > There are two problems: > 1) the table needs an alias (for instance, append AS T1), otherwise this error is raised: > ERROR 42X01: Syntax error: Encountered "" at line 1, column 56. > Issue the 'help' command for general information on IJ command syntax. > Any unrecognized commands are treated as potential SQL commands and executed directly. > Consult your DBMS server reference documentation for details of the SQL syntax supported by your server. > 2) the name of the role should be a string (needs single quotes), not an identifier, otherwise this error is raised: > ERROR 42X04: Column 'READER' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'READER' is not a column in the target table. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.