logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

[jira] Created: (DERBY-3) Identity column not filled consecutively with "in: msg#00281

apache.db.derby.devel

Subject: [jira] Created: (DERBY-3) Identity column not filled consecutively with "insert ... select distinct"

Message:

A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/DERBY-3

Here is an overview of the issue:
---------------------------------------------------------------------
Key: DERBY-3
Summary: Identity column not filled consecutively with "insert ... select
distinct"
Type: Bug

Status: Unassigned
Priority: Major

Project: Derby

Assignee:
Reporter: Christian d'Heureuse

Created: Mon, 27 Sep 2004 10:32 AM
Updated: Mon, 27 Sep 2004 10:32 AM
Environment: Derby Snapshot svnversion 46005
or Cloudscape 10.0 GA

Description:
When an "insert ... select distinct" is used to fill a table with an identity
column, gaps occur in the identity column. The caps correspond to the rows of
the source table that have been suppressed with "distinct".

Example:

create table temp1 (
s varchar(10));
insert into temp1 values 'a','a','a','b','c','c','c','d';

create table temp2 (
i integer not null
generated always as identity
primary key,
s varchar(10));

insert into temp2 (s)
select distinct s from temp1;
select * from temp2;

output:
1 a
4 b
5 c
8 d



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira







Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo