Issue Details (XML | Word | Printable)

Key: DERBY-158
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jeremy Boynes
Reporter: Bernt M. Johnsen
Votes: 0
Watchers: 1
Operations

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

PRIMARY KEY does not imply NOT NULL

Created: 04/Mar/05 06:46 AM   Updated: 04/May/05 04:02 AM
Return to search
Component/s: SQL
Affects Version/s: None
Fix Version/s: 10.1.1.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby-158-1.patch 2005-03-05 01:37 PM Jeremy Boynes 8 kB
Text File Licensed for inclusion in ASF works derby-158-2.patch 2005-03-06 06:14 AM Jeremy Boynes 16 kB

Resolution Date: 09/Mar/05 06:25 AM


 Description  « Hide
PRIMARY KEY does not imply NOT NULL. Derby issues error message:

ij> create table tab (i integer primary key);
ERROR 42831: 'I' cannot be a column of a primary key or unique key because it can contain null values.

This is neither compliant with SQL-92 nor with SQL-99 (Feature E141-08, I think).


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order