Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 55030 invoked from network); 19 Feb 2008 04:11:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 04:11:08 -0000 Received: (qmail 13989 invoked by uid 500); 19 Feb 2008 04:11:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 13948 invoked by uid 500); 19 Feb 2008 04:11:02 -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 13939 invoked by uid 99); 19 Feb 2008 04:11:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 20:11:02 -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; Tue, 19 Feb 2008 04:10:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2D4E7234C03D for ; Mon, 18 Feb 2008 20:10:38 -0800 (PST) Message-ID: <957817497.1203394238162.JavaMail.jira@brutus> Date: Mon, 18 Feb 2008 20:10:38 -0800 (PST) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-3430) Inconsistency in JDBC autogen APIs between Connection.prepareStatement(...) and Statement.execute(...) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 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.