Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 56001 invoked from network); 20 Feb 2008 00:37:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 00:37:17 -0000 Received: (qmail 54993 invoked by uid 500); 20 Feb 2008 00:37:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 54775 invoked by uid 500); 20 Feb 2008 00:37:10 -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 54766 invoked by uid 99); 20 Feb 2008 00:37:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 16:37:10 -0800 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, 20 Feb 2008 00:36:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9929F234C043 for ; Tue, 19 Feb 2008 16:36:43 -0800 (PST) Message-ID: <2127147239.1203467803626.JavaMail.jira@brutus> Date: Tue, 19 Feb 2008 16:36:43 -0800 (PST) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-3430) Inconsistency in JDBC autogen APIs between Connection.prepareStatement(...) and Statement.execute(...) In-Reply-To: <957817497.1203394238162.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-3430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden reassigned DERBY-3430: ------------------------------------- Assignee: Kathey Marsden > Inconsistency in JDBC autogen APIs between Connection.prepareStatement(...) and Statement.execute(...) > ------------------------------------------------------------------------------------------------------ > > Key: DERBY-3430 > URL: https://issues.apache.org/jira/browse/DERBY-3430 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.3.1.4, 10.4.0.0 > Reporter: A B > Assignee: Kathey Marsden > Priority: Minor > > In EmbedStatement.java the execute(String, String[]), execute(String, int[]), executeUpdate(String, String[]), and executeUpdate(String, int[]) methods treat a 0-length array to mean NO_GENERATED_KEYS. But in EmbedConnection.java the prepareStatement(String, String[]) and prepareStatement(String, int[]) methods treat a 0-length array to mean RETURN_GENERATED_KEYS. For the sake of consistency, the two classes should treat 0-length arrays in the same way--which probably means changing EmbedConnection to match EmbedStatement. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.