Bug #38344 | UNIQUE key is not working when there is a default value on a field | ||
---|---|---|---|
Submitted: | 24 Jul 2008 11:58 | Modified: | 24 Jul 2008 12:27 |
Reporter: | Jerome Despatis | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0.45 | OS: | Linux (Kubuntu) |
Assigned to: | CPU Architecture: | Any | |
Tags: | default value, duplicate, key, unique |
[24 Jul 2008 11:58]
Jerome Despatis
[24 Jul 2008 12:27]
Susanne Ebrecht
Many thanks for reporting a bug. This is not a bug. You inserted two times: 1, NULL, 1, 1 (NULL != NULL) always is true. Means the systems thinks that NULL is different in every row.