Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99912 invoked from network); 4 Jun 2005 21:14:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jun 2005 21:14:11 -0000 Received: (qmail 13201 invoked by uid 500); 4 Jun 2005 21:14:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 13058 invoked by uid 500); 4 Jun 2005 21:14:07 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 13008 invoked by uid 99); 4 Jun 2005 21:14:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 04 Jun 2005 14:14:05 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E55DA183 for ; Sat, 4 Jun 2005 22:52:42 +0200 (CEST) Message-ID: <662823661.1117918362937.JavaMail.jira@ajax.apache.org> Date: Sat, 4 Jun 2005 22:52:42 +0200 (CEST) From: "Satheesh Bandaram (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-25) INSERT INTO SELECT DISTINCT ... skips some values for autoincrement column In-Reply-To: <204758642.1096575820641.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-25?page=all ] Satheesh Bandaram closed DERBY-25: ---------------------------------- Duplicate of Derby-3. > INSERT INTO SELECT DISTINCT ... skips some values for autoincrement column > -------------------------------------------------------------------------- > > Key: DERBY-25 > URL: http://issues.apache.org/jira/browse/DERBY-25 > Project: Derby > Type: Bug > Components: SQL > Versions: 10.0.2.0 > Reporter: Tulika Agrawal > Priority: Minor > > Reporting for Mamta Satoor. > If we use insert into desttable, select > distinct from source, into a desttable which has autoincrement > column in it, we might see gaps in the autoincrement column if > there are duplicated rows in the source table. The reason for > this is Derby projects values into destination table columns before > building a distinct resultset from the source table. The piece > of code doing this is in org.apache.derby.impl.sql.execute.ProjectRestrictResultSet class's getNextRowCore() method where it calls doProjection. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira