[MDEV-31397] Implement DISTINCT and NOT DISTINCT for unique NULL handling Created: 2023-06-03 Updated: 2023-06-03 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Ian Gilfillan | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | sql2023 | ||
| Issue Links: |
|
||||||||
| Description |
|
In MariaDB, unique indexes permit duplicate NULLs.
Previously, the SQL standard has not been clear about the behaviour, leaving it to be implemented in multiple ways. For example, SQL Server does not permit the second row to be inserted, while PostgreSQL does. Now, with the SQL 2023 standard, the behaviour is made explicit:
allows the duplicate NULL to be inserted, while
does not. |