Issue Details (XML | Word | Printable)

Key: DERBY-25
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Minor Minor
Assignee: Unassigned
Reporter: Tulika Agrawal
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Derby

INSERT INTO SELECT DISTINCT ... skips some values for autoincrement column

Created: 30/Sep/04 08:23 PM   Updated: 05/Jun/05 05:44 AM
Return to search
Component/s: SQL
Affects Version/s: 10.0.2.0
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 05/May/05 07:35 AM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.