[MDEV-9324] FR: In addition to MDEV-8605 I propose check duplication for PK and unique index before NULL checking Created: 2015-12-25 Updated: 2017-06-05 Resolved: 2017-05-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Mikhail Gavrilov | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In addition to This example should work:
But currently having error: |
| Comments |
| Comment by Elena Stepanova [ 2015-12-26 ] |
|
I will convert it into a task and leave it to somebody else to decide whether it's possible and desirable. However, I don't understand this use case (or rather this whole family of use cases), it looks artificial to me. Also, FWIW, you can still do it if you switch off the strict mode. |
| Comment by Mikhail Gavrilov [ 2015-12-26 ] |
|
Elena,do you have any another idea for massive update operation? |
| Comment by Sergei Golubchik [ 2017-05-29 ] |
|
I don't think it's doable without massive changes to the server and all storage engines. First a record is filled with values, then it's sent to the engine. Engine tries to insert values into indexes, notices duplicate values, and returns an error. One cannot store NULL in the record, if the field is declared NOT NULL. So we'd need
Lots of complex changes. It's unlikely we ever get around to implementing it. |
| Comment by Mikhail Gavrilov [ 2017-06-05 ] |
|
It is pity that one of the most exciting features is rejected. I understand that it is not easy to implement. But 99% of users like me use only innodb, so it is not necessary to implement this in all storage engines. And the most important thing is hepl's increase the speed massive updates records. |